Commit 74d66869 authored by John Chodera (MSKCC)'s avatar John Chodera (MSKCC)
Browse files

Debugging issues with packaging script.

parent 4fcf2b16
......@@ -9,16 +9,32 @@ export VERSION=$(sed -nr "s/OPENMM_VERSION:STRING=(.*)/\1/p" build/CMakeCache.tx
export PACKAGE_SUBDIR="OpenMM-${VERSION}-Linux" # directory where distribution will be unpacked
export DISTRO_PREFIX="OpenMM-${VERSION}-Linux" # prefix for source distribution (e.g. ${DISTRIBUTION_NAME}.zip)
# DEBUG
echo "DEBUG 1"
pwd
ls -ltr .
# END DEBUG
# Perform all work in a work directory.
cd work
# DEBUG
echo "DEBUG 1"
pwd
ls -ltr .
# END DEBUG
# Clean up.
rm -rf $PACKAGE_DIR
# Make a directory to contain packaged source distribution
echo "DEBUG 3"
mkdir $PACKAGE_DIR
mkdir $PACKAGE_DIR/$PACKAGE_SUBDIR
for filename in $( cat openmm/devtools/packaging/manifests/binary/manifest.txt ); do
# DEBUG: List contents of each directory.
ls -ltr install/$filename
# END DEBUG
CMD="cp -r install/$filename $PACKAGE_DIR/$PACKAGE_SUBDIR"
echo $CMD
`$CMD`
......@@ -31,12 +47,13 @@ echo $CMD
# Make Python source distribution.
echo "Building Python source distribution..."
pushd .
cd build
make PythonSdist
cd python/dist
tar zxf OpenMM-${VERSION}.tar.gz
mv OpenMM-${VERSION} python
cd ../../..
popd
cp -r build/python/dist/python $PACKAGE_DIR/$PACKAGE_SUBDIR
# Create archives.
......
......@@ -28,12 +28,13 @@ echo $CMD
# Make Python source distribution.
echo "Building Python source distribution..."
pushd .
cd build
make PythonSdist
cd python/dist
tar zxf OpenMM-${VERSION}.tar.gz
mv OpenMM-${VERSION} python
cd ../../..
popd
cp -r build/python/dist/python $PACKAGE_DIR/$PACKAGE_SUBDIR
# Create archives.
......
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