8000 pip3 21.3 deprecated --build-dir (and aliases, eg. --build) · Issue #1916 · jordansissel/fpm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

pip3 21.3 deprecated --build-dir (and aliases, eg. --build) #1916

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

Closed
philschwartzsonos opened this issue Jul 12, 2022 · 3 comments
Closed

pip3 21.3 deprecated --build-dir (and aliases, eg. --build) #1916

philschwartzsonos opened this issue Jul 12, 2022 · 3 comments

Comments

@philschwartzsonos
Copy link

from https://pip.pypa.io/en/stable/news/:

Remove the --build-dir option and aliases, one last time. (#10485)

$ pip3 --version
pip 22.0.2 from /usr/lib/python3/dist-packages/pip (python 3.10)

$ fpm -s python -t deb --python-bin python3 --python-pip pip3 --python-package-name-prefix python3 --python-install-lib=/usr/lib/python3/dist-packages --python-install-bin=/usr/bin --deb-no-default-config-files --verbose flask

fpm ultimately attempts to run the following command when using -s python:

$ pip3 download --no-clean --no-deps --no-binary :all: -i https://pypi.python.org/simple --build /tmp/package-python-build-ca294820df13179a5615a2cfb5e98006916ac6b54d90323c649d9b3cd190/flask flask

Usage:
pip3 download [options] [package-index-options] ...
pip3 download [options] -r [package-index-options] ...
pip3 download [options] ...
pip3 download [options] ...
pip3 download [options] <archive url/path> ...

no such option: --build

@jordansissel
Copy link
Owner

I merged a fix for this but haven’t yet had energy to do an fpm release. Sorry for the delays.

#1896

@philschwartzsonos
Copy link
Author

Awesome, thanks Jordan! I patched fpm-1.13.1 with the python.rb in the commit you mentioned and things are working fine now.

FWIW, I've successfully built about 30 pip3 packages with fpm using the patch and haven't had it fail yet so looks like your assumptions at least handle most cases. Some of these pkgs include names with capital first-letters and/or contain embedded hyphens.

@jordansissel
Copy link
Owner 6455

fpm 1.15.0 is released and contains this improvement.

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

2 participants
0