Pre-install Python dependencies in CI Docker images.
[alexxy/gromacs.git] / admin / ci-scripts / build-and-test-py-gmxapi-0.3.sh
index acf105429c8cf54bf08679784dd034889958d641..43cc75f0e0cf5afc353c61238651f9e9cc54f13d 100644 (file)
 # Make sure the script errors if any commands error.
 set -e
 
-# Create "sdist" source distribution archive.
 pushd python_packaging/src
-  # TODO: Remove extraneous environment variable with resolution of #3273
-  # Ref: https://redmine.gromacs.org/issues/3273
-  GMXTOOLCHAINDIR=$INSTALL_DIR/share/cmake/gromacs \
-      python setup.py sdist
-  SDIST=dist/gmxapi*
-
-  # Build and install from sdist.
-  # Note that tool chain may be provided differently in GROMACS 2020 and 2021.
+  # Make sure to delete any accidentally lingering build artifacts.
+  rm -rf build dist
+  # Build and install the gmxapi Python package.
+  # TODO(#3273): Reduce requirements for `setup.py` `sdist` command and provide build artifact.
   GMXTOOLCHAINDIR=$INSTALL_DIR/share/cmake/gromacs \
       python -m pip install \
+          --no-build-isolation \
           --no-cache-dir \
           --no-deps \
           --no-index \
-          --no-build-isolation \
-          $SDIST
-
+          .
 popd
 
 # Run Python unit tests.