Merge pull request #13533 from carlocab/python-install-lib

language/python: add `--install-lib` to `setup_install_args`
This commit is contained in:
Michka Popoff 2022-07-14 11:34:45 +02:00 committed by GitHub
commit 8dc46a7c47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -70,7 +70,7 @@ module Language
quiet_system python, "-c", script
end
def self.setup_install_args(prefix)
def self.setup_install_args(prefix, python = "python3")
shim = <<~PYTHON
import setuptools, tokenize
__file__ = 'setup.py'
@ -84,6 +84,7 @@ module Language
install
--prefix=#{prefix}
--install-scripts=#{prefix}/bin
--install-lib=#{prefix/site_packages(python)}
--single-version-externally-managed
--record=installed.txt
]