Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error running 'bash install.sh': option --use-feature: invalid choice: 'in-tree-build' #197

Open
CESARDELATORRE opened this issue Jun 10, 2024 · 1 comment

Comments

@CESARDELATORRE
Copy link
Member

CESARDELATORRE commented Jun 10, 2024

When running the bash install.sh I'm getting this error:

Usage:
pip install [options] [package-index-options] ...
pip install [options] -r [package-index-options] ...
pip install [options] [-e] ...
pip install [options] [-e] ...
pip install [options] <archive url/path> ...

option --use-feature: invalid choice: 'in-tree-build' (choose from 'fast-deps', 'truststore', 'no-binary-enable-wheel-cache')
install.sh: line 22: 1225 Segmentation fault python setup.py build_ext --inplace

image

It's related to this line within the install.sh file:

pip install . --use-feature=in-tree-build

The error message is indicating that --use-feature=in-tree-build is not a valid option for the pip install command. The valid choices for --use-feature are fast-deps, truststore, and no-binary-enable-wheel-cache.

The in-tree-build feature was used in pip version 21.3 to allow building packages in their own directory, but I'm using a newer version "pip 24.0".

If I directly run that line, I get the same error:

image

Looks like a bug/issue in the bash install.sh script to be fixed?
Or is there any workaround/fix for this?

@CESARDELATORRE
Copy link
Member Author

I believe the fix should be to replace that line to this:

pip install .

Since in newer versions of pip the "in-tree-build" feature should be integrated by default in your pip version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant