py-pipTool for installing and managing Python packages
23.3.2_4develΣ=16 23.3.2_4Version of this port present on the latest quarterly branch.upstream: 26.3A newer version was found upstream by portscout, first on 2026-11-03.
The PyPA recommended tool for installing and managing Python packages.
pip is a replacement for easy_install. It uses mostly the same techniques
for finding packages, so packages that were made easy_installable should
be pip-installable as well.
pip is meant to improve on easy_install. Some of the improvements:
* All packages are downloaded before installation. Partially-completed
installation doesn't occur as a result.
* Care is taken to present useful output on the console.
* The reasons for actions are kept track of. For instance, if a package
is being installed, pip keeps track of why that package was required.
* Error messages should be useful.
* Packages don't have to be installed as egg archives, they can be
installed flat (while keeping the egg metadata).
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py312-pip listed in the above command, you can pick from the names under the Packages section.
pip MUST ONLY be used:
* With the --user flag, OR
* To install or manage Python packages in virtual environments
Failure to follow this warning can and will result in an inconsistent
system-wide Python environment (LOCALBASE/lib/pythonX.Y/site-packages) and
cause errors.
Avoid using pip as root unless you know what you're doing.
python: bump all USE_PYTHON=distutils consumers after RUN_DEPENDS removal
Any missed ports, feel free to bump.
Any ports that need setuptools at runtime can have the devel/py-setuptools
manually added back to RUN_DEPENDS, but understand that this practice
is deprecated; see CHANGES for details.
devel/py-pip: Reenable DOCS option by using py-towncrier23
- Bump PORTREVISION for package change
Change py-sphinxcontrib-towncrier and this port from incompatible py-towncrier
to compatible py-towncrier23. Therefore, DOCS can be enabled again.
Reference: https://github.com/sphinx-contrib/sphinxcontrib-towncrier/issues/92
PR: 280570
*/*: Properly depend on Subversion LTS or latest with WITH_SUBVERSION_VER
When LTS version of Subversion is set in make.conf (WITH_SUBVERSION_VER)
depending ports will still depend on latest version (devel/subversion)
instead of LTS one (devel/subversion-lts). This will cause dependency
conflicts when packages are distributed with Poudriere, namely pkg(8)
will report them and fail to install.
Make all affected ports properly depend on the right port based on the
value set in WITH_SUBVERSION_VER.
Approved by: jrm (mentor), otis (mentor), lev (maintainer timeout)
Differential Revision: https://reviews.freebsd.org/D43864
*: Replace USES=pycryptography* with USE_PYTHON=cryptography{,_build,_test}
- Introduce USE_PYTHON=cryptography{,_build,_test}
- Switch all 96 ports from USES=pycryptography to with
USE_PYTHON=cryptography{,_build,_test}
- Remove Mk/Uses/pycryptography.mk
PR: 273727
Approved by: tcberner (portmgr)
Exp-run by: antoine
framework: convert tree to use USES=pycryptography
A future commit will update to security/py-cryptography will introduce a
rust dependency.
PR: 254853
all: remove explicit versions in USES=python for "3.x+"
The logic in USES=python will automatically convert this to 3.8+ by
itself.
Adjust two ports that only had Python 3.7 mentioned but build fine
on Python 3.8 too.
finance/quickfix: mark BROKEN with PYTHON
libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++
-DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable
-Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong
-fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi
-Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings
-Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x
-MT _quickfix_la-QuickfixPython.lo -MD -MP -MF
.deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o
.libs/_quickfix_la-QuickfixPython.o
warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean
'-Wno-uninitialized'? [-Wunknown-warning-option]
QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found
^~~~~~~~~~
1 warning and 1 error generated.
Reviewed by: portmgr, vishwin, yuri
Differential Revision: <https://reviews.freebsd.org/D40568>
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
Mk: switch PYTHON_REL to 5 digits to support python 3.10.x
PR: 255013
Differential Revision: https://reviews.freebsd.org/D29418
Exp-run by: antoine
Approved by: wen@, no objection from python@ or portmgr@
Defuse a ticking time-bomb by removing the dependency on devel/bzr.
It is likely that this will break "make test", so, why am I doing it?
The answer is that devel/bzr unconditionally depends on python27 (it is
known not to build with python37) -- and python27 is imminently due for
removal (see PR 249337).
This would not matter so much except that py-pip winds up a dependency
of devel/cmake, and thus, over 2000 ports -- all of which would have
broken when python27 was removed.
Unfortunately the time before that removal happens is simply too short
to have a proper discussion with all stakeholders. We need to remove
the dependency immediately so that PR 249337 can proceed.
PR: 249337 (related to)
Update Sphinx
- Repocopy textproc/py-sphinx to textproc/py-sphinx18
Update it to 1.8.5 (latest version from 1.8.X).
This version supports Python 2 and 3.
Add test target.
- textproc/py-sphinx: Update to 3.0.2
Python 3 only (3.5+).
Add test target.
- Mk/Uses/python.mk: Add PY_SPHINX
(Only the first 15 lines of the commit message are shown above )
Convert Python ports to FLAVORS.
Ports using USE_PYTHON=distutils are now flavored. They will
automatically get flavors (py27, py34, py35, py36) depending on what
versions they support.
There is also a USE_PYTHON=flavors for ports that do not use distutils
but need FLAVORS to be set. A USE_PYTHON=noflavors can be set if
using distutils but flavors are not wanted.
A new USE_PYTHON=optsuffix that will add PYTHON_PKGNAMESUFFIX has been
added to cope with Python ports that did not have the Python
PKGNAMEPREFIX but are flavored.
USES=python now also exports a PY_FLAVOR variable that contains the
(Only the first 15 lines of the commit message are shown above )
devel/py-pip: Add pkg-message user WARNING
Add a pkg-message warning users not to use pip to install packages in
the system-wide Python environment location. This should have been done
a long time ago.
While I'm here:
- Add LICENSE_FILE
- Enable NO_ARCH
- Match *_DEPENDS versions to those in setup.py
- Fix incorrect pytest-xdist package name match
PR: 205881, 205819
Reported by: many
Suggested by: many
MFH: 2016Q1
Improve shebangfix framework
- Support multiple values in *_OLD_CMD, i.e. we can now fix both
"/usr/bin/python" and "/usr/bin/env python" at the same time
- Default *_OLD_CMD values are now always appended, so you don't need to specify
them in individual ports
- Add lua support (depends on USES=lua)
- Add more default values, such as "/usr/bin/env foo" for python, perl, bash,
ruby and lua
- Shebangfix now matches whole words, e.g. we will no longer (erroneously)
replace "/usr/bin/perl5.005" with "${perl_CMD}5.005" (but "/usr/bin/perl -tt" is
still (correctly) replaced with "${perl_CMD} -tt")
Note that *_OLD_CMD items containing spaces must now be quoted (e.g.
perl_OLD_CMD=/bin/perl /usr/bin/perl "/usr/bin/env perl")
Update shebangfix usage according to new rules in many ports:
- Remove *_OLD_CMD for patterns now replaced by default
- Quote custom *_OLD_CMD which contain spaces
Fix shebangfix usage in many ports (irrelevant to infrastructure change):
- Remove redundant SHEBANG_LANG (no need to duplicate default langs)
- Remove redundant *_CMD (such as
python_CMD=${LOCALBASE}/bin/python${PYTHON_VER} when USES=python is present)
- Never use *_OLD_CMD in REINPLACE_CMD matchers, these should always look for
exact string
Approved by: portmgr (bapt)
Differential Revision: D3756
Switch default python_CMD used by shebangfix to ${PYTHON_CMD} for ports
using python
PR: 201077
Reviewed by: mat
With hat: portmgr
Differential Revision: https://reviews.freebsd.org/D2955
devel/py-pip: Fix pkg-plist (DOCS)
Update pkg-plist for DOCS option files that were missed in the last update
I committed.
Reported by: mat
Approved by: portmgr (blanket)
MFH: 2015Q3
devl/py-pip: Update to 7.0.3
- Update to 7.0.3
- Update pkg-plist
- USE_GITHUB to get test suite (PyPI sdist doesnt include them)
- Add TEST_DEPENDS and canonicalise regression-test: target
- Patch setup.cfg so that tests run properly
- Temporarily patch out versioned console_script's (pipX, pipX.Y)
until USE_PYTHON=concurrent supports more granularity (coming soon).
Note: A couple of tests fail because of these missing console_scripts.
- Add USE_PYTHON=concurrent support accordingly.
While I'm here:
- Makefile: Sort sections
- Makefile: Whitespace align
Changes:
https://pip.pypa.io/en/stable/news.html
PR: 200688
Approved by: nivit (maintainer)
- Update to 6.0.6
- Switch back to CHEESESHOP as download site
because doc sources are now included in the
distribution file
- Update WWW address in pkg-descr
Relnotes: https://pip.pypa.io/en/latest/news.html
- Update to 1.5.4
- Use GitHub as download site, so we can build docs
- Build docs as HTML format with Sphinx
- Add a regression-test target (not active at the moment, because
some tests fail)
- Update pkg-descr
Release Notes: http://www.pip-installer.org/en/latest/news.html
pip is a replacement for easy_install. It uses mostly the same techniques
for finding packages, so packages that were made easy_installable should
be pip-installable as well.
pip is meant to improve on easy_install. Some of the improvements:
* All packages are downloaded before installation. Partially-completed
installation doesn't occur as a result.
* Care is taken to present useful output on the console.
* The reasons for actions are kept track of. For instance, if a package
is being installed, pip keeps track of why that package was required.
* Error messages should be useful.
* Packages don't have to be installed as egg archives, they can be
installed flat (while keeping the egg metadata).
WWW: http://pip.openplans.org/