Commit e6d78cfe authored by peastman's avatar peastman
Browse files

Merge pull request #746 from jchodera/fix-packaging-scripts

Modified packaging scripts so that we no longer install Python into lib
parents 066cdd60 5030c946
...@@ -10,6 +10,10 @@ export WORKSPACE=`pwd` ...@@ -10,6 +10,10 @@ export WORKSPACE=`pwd`
PATH=$WORKSPACE/miniconda/bin:$PATH PATH=$WORKSPACE/miniconda/bin:$PATH
INSTALL=`pwd`/install INSTALL=`pwd`/install
if [ -e $INSTALL ]; then
rm -rf $INSTALL
fi
CMAKE_FLAGS="-DCMAKE_INSTALL_PREFIX=$INSTALL" CMAKE_FLAGS="-DCMAKE_INSTALL_PREFIX=$INSTALL"
# setting the rpath so that libOpenMMPME.so finds the right libfftw3 # setting the rpath so that libOpenMMPME.so finds the right libfftw3
...@@ -37,14 +41,6 @@ mkdir build ...@@ -37,14 +41,6 @@ mkdir build
cd build cd build
cmake ../openmm $CMAKE_FLAGS cmake ../openmm $CMAKE_FLAGS
make -j4 all DoxygenApiDocs sphinxpdf make -j4 all DoxygenApiDocs sphinxpdf
make install
# Install Python wrappers. # Install.
export OPENMM_INCLUDE_PATH=$INSTALL/include make install
export OPENMM_LIB_PATH=$INSTALL/lib
cd python
python setup.py install --prefix=$INSTALL
cd ../..
# Copy all tests to bin directory so they will be distributed with install package.
#cp `find . -name "Test*" -type f -maxdepth 1` $PREFIX/bin
...@@ -31,12 +31,13 @@ echo $CMD ...@@ -31,12 +31,13 @@ echo $CMD
# Make Python source distribution. # Make Python source distribution.
echo "Building Python source distribution..." echo "Building Python source distribution..."
pushd .
cd build cd build
make PythonSdist make PythonSdist
cd python/dist cd python/dist
tar zxf OpenMM-${VERSION}.tar.gz tar zxf OpenMM-${VERSION}.tar.gz
mv OpenMM-${VERSION} python mv OpenMM-${VERSION} python
cd ../../.. popd
cp -r build/python/dist/python $PACKAGE_DIR/$PACKAGE_SUBDIR cp -r build/python/dist/python $PACKAGE_DIR/$PACKAGE_SUBDIR
# Create archives. # Create archives.
......
...@@ -15,6 +15,7 @@ then ...@@ -15,6 +15,7 @@ then
echo "miniconda already exists" echo "miniconda already exists"
else else
echo "Downloading miniconda..." echo "Downloading miniconda..."
rm -rf Miniconda-*
wget --quiet http://repo.continuum.io/miniconda/${MINICONDA} wget --quiet http://repo.continuum.io/miniconda/${MINICONDA}
bash ${MINICONDA} -b -p miniconda bash ${MINICONDA} -b -p miniconda
PIP_ARGS="-U" PIP_ARGS="-U"
......
...@@ -9,7 +9,12 @@ export WORKSPACE=`pwd` ...@@ -9,7 +9,12 @@ export WORKSPACE=`pwd`
# Add conda binaries to path. # Add conda binaries to path.
PATH=$WORKSPACE/miniconda/bin:$PATH PATH=$WORKSPACE/miniconda/bin:$PATH
# Set install directory.
INSTALL=`pwd`/install INSTALL=`pwd`/install
if [ -e $INSTALL ]; then
rm -rf $INSTALL
fi
CMAKE_FLAGS="-DCMAKE_INSTALL_PREFIX=$INSTALL" CMAKE_FLAGS="-DCMAKE_INSTALL_PREFIX=$INSTALL"
# setting the rpath so that libOpenMMPME.so finds the right libfftw3 # setting the rpath so that libOpenMMPME.so finds the right libfftw3
...@@ -38,14 +43,6 @@ mkdir build ...@@ -38,14 +43,6 @@ mkdir build
cd build cd build
cmake ../openmm $CMAKE_FLAGS cmake ../openmm $CMAKE_FLAGS
make -j4 all DoxygenApiDocs sphinxpdf make -j4 all DoxygenApiDocs sphinxpdf
make install
# Install Python wrappers. # Install.
export OPENMM_INCLUDE_PATH=$INSTALL/include make install
export OPENMM_LIB_PATH=$INSTALL/lib
cd python
$PYTHON setup.py install --prefix=$INSTALL
cd ../..
# Copy all tests to bin directory so they will be distributed with install package.
#cp `find . -name "Test*" -type f -maxdepth 1` $PREFIX/bin
...@@ -28,12 +28,13 @@ echo $CMD ...@@ -28,12 +28,13 @@ echo $CMD
# Make Python source distribution. # Make Python source distribution.
echo "Building Python source distribution..." echo "Building Python source distribution..."
pushd .
cd build cd build
make PythonSdist make PythonSdist
cd python/dist cd python/dist
tar zxf OpenMM-${VERSION}.tar.gz tar zxf OpenMM-${VERSION}.tar.gz
mv OpenMM-${VERSION} python mv OpenMM-${VERSION} python
cd ../../.. popd
cp -r build/python/dist/python $PACKAGE_DIR/$PACKAGE_SUBDIR cp -r build/python/dist/python $PACKAGE_DIR/$PACKAGE_SUBDIR
# Create archives. # Create archives.
......
...@@ -15,6 +15,7 @@ then ...@@ -15,6 +15,7 @@ then
echo "miniconda already exists" echo "miniconda already exists"
else else
echo "Downloading miniconda..." echo "Downloading miniconda..."
rm -rf Miniconda-*
wget --quiet http://repo.continuum.io/miniconda/${MINICONDA} wget --quiet http://repo.continuum.io/miniconda/${MINICONDA}
bash ${MINICONDA} -b -p miniconda bash ${MINICONDA} -b -p miniconda
PIP_ARGS="-U" PIP_ARGS="-U"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment