123456789101112131415161718192021222324252627282930313233343536 |
- #!/bin/bash
- # creative commons BLFS Copyright 1999-2024 The BLFS Development Team
- if [[ "$1" == "-h" ]]; then
- echo "we are here"
- #example
- # python-install.sh /sources/python/packaging-23.2 packaging
- echo "python-install.sh /sources/python/packaging-23.2 packaging"
- exit
- fi
- pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir `pwd`
- WHATWEDOIN=`pwd . | awk -F'-' '{print $1}' | sed -e "s/\//\n/g" | tail -n 1`
- pip3 install --no-index --find-links=dist --no-cache-dir --no-user $WHATWEDOIN
- # -w dist: builds the appropriate "wheel" for this module in the directory dist.
- # --no-build-isolation: tells pip3 to run the build in the system environment instead of creating a temporary build environment.
- # --no-deps: prevents pip3 from building wheels for the project's dependencies.
- # --no-index: ignores the package index (only looking at --find-links URLs instead).
- # --find-links dist: looks for links to archives such as wheel (.whl) files in the directory dist.
- # --no-cache-dir: disables the cache to prevent a warning when installing as the root user.
- # --no-user: Prevent mistakenly running the install command as a non-root user.
- # --upgrade: Upgrade the package to the newest available version. This option is used with the install command if a version of the package is already installed.
- # --force-reinstall: Reinstall the package even if it is up-to-date. This option is used with the install command if reinstalling the package or reverting to an earlier version of the package.
- # --no-deps: Do not install package dependencies. This option may be needed with the --upgrade or --force-reinstall options.
|