-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify Python modules installation (#5343)
* Simplify Python modules installation * Remove miniconda environment setup for MacOS -- tensorflow-metal can be installed with plain pip now. * Deduplicate requirements specifications to reduce need for copy-pasting. * Stop installing modules inside a fresh virtualenv, since those are not relocatable. Use PYTHONPATH instead. * Remove deactivation of outer virtualenv, since that will mess up the PATH. * Fix shebang patcher Since we're not using a virtualenv any more, shebangs for Python scripts most likely refer to `$PYTHON_ROOT`, not `$PYTHON_MODULES_ROOT`. * Fix binary path to match standard Move binaries from `$INSTALLROOT/share/python-modules/bin` to `$INSTALLROOT/bin`. This matches other packages, and lets us use the default PATH entry added by alibuild. No libraries are installed in `.../lib` either way, so we don't care about `LD_LIBRARY_PATH`. * Fix Python libraries path to match standard Install Python modules to a semi-standard path, to match other Python packages in alidist (e.g. xjalienfs). Updatable RPMs are no longer a concern, since we install these under `/opt/alisw/<arch>/<package>` nowadays -- so there's no risk of conflict among packages and with the base system. * Fix cython binary path * Update outdated Python packages on Python 3.11+ This should fix an ImportError when trying to use ipython on newer Python versions. * Reinstate virtualenv * Merge dask packages from #5303 * Add comment about MacOS-shipped Python This was encountered on one of the CI Macs and fixed by running "brew install python". Homebrew doesn't link python@3.12 as bin/python3, only python@3.11. * Fix tensorflow-metal version on Python 3.11
- Loading branch information
1 parent
474abac
commit 7ab6032
Showing
6 changed files
with
138 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.