Merge "create a more generic work around for cffi & wheels"
This commit is contained in:
commit
55f063a106
6
stack.sh
6
stack.sh
@ -708,12 +708,6 @@ source $TOP_DIR/tools/fixup_stuff.sh
|
|||||||
# Pre-build some problematic wheels
|
# Pre-build some problematic wheels
|
||||||
if [[ -n ${WHEELHOUSE:-} && ! -d ${WHEELHOUSE:-} ]]; then
|
if [[ -n ${WHEELHOUSE:-} && ! -d ${WHEELHOUSE:-} ]]; then
|
||||||
source $TOP_DIR/tools/build_wheels.sh
|
source $TOP_DIR/tools/build_wheels.sh
|
||||||
|
|
||||||
# Due to https://bugs.launchpad.net/swift/+bug/1451992 we have to import
|
|
||||||
# this package with root once so the CFFI bindings can be built. We have
|
|
||||||
# to therefore install it so we can import it.
|
|
||||||
pip_install xattr
|
|
||||||
sudo python -c "import xattr"
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
@ -60,6 +60,18 @@ virtualenv $TMP_VENV_PATH
|
|||||||
# Install modern pip and wheel
|
# Install modern pip and wheel
|
||||||
PIP_VIRTUAL_ENV=$TMP_VENV_PATH pip_install -U pip wheel
|
PIP_VIRTUAL_ENV=$TMP_VENV_PATH pip_install -U pip wheel
|
||||||
|
|
||||||
|
# BUG: cffi has a lot of issues. It has no stable ABI, if installed
|
||||||
|
# code is built with a different ABI than the one that's detected at
|
||||||
|
# load time, it tries to compile on the fly for the new ABI in the
|
||||||
|
# install location (which will probably be /usr and not
|
||||||
|
# writable). Also cffi is often included via setup_requires by
|
||||||
|
# packages, which have different install rules (allowing betas) than
|
||||||
|
# pip has.
|
||||||
|
#
|
||||||
|
# Because of this we must pip install cffi into the venv to build
|
||||||
|
# wheels.
|
||||||
|
PIP_VIRTUAL_ENV=$TMP_VENV_PATH pip_install_gr cffi
|
||||||
|
|
||||||
# ``VENV_PACKAGES`` is a list of packages we want to pre-install
|
# ``VENV_PACKAGES`` is a list of packages we want to pre-install
|
||||||
VENV_PACKAGE_FILE=$FILES/venv-requirements.txt
|
VENV_PACKAGE_FILE=$FILES/venv-requirements.txt
|
||||||
if [[ -r $VENV_PACKAGE_FILE ]]; then
|
if [[ -r $VENV_PACKAGE_FILE ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user