unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#64869] [PATCH 0/2] Add pipx package manager for Python applications
@ 2023-07-26  9:05 Wojtek Kosior via Guix-patches via
  2023-07-26  9:09 ` [bug#64869] [PATCH 1/2] gnu: Add python-userpath Wojtek Kosior via Guix-patches via
  2023-07-26  9:09 ` [bug#64869] [PATCH 2/2] gnu: Add python-pipx Wojtek Kosior via Guix-patches via
  0 siblings, 2 replies; 3+ messages in thread
From: Wojtek Kosior via Guix-patches via @ 2023-07-26  9:05 UTC (permalink / raw)
  To: 64869; +Cc: Wojtek Kosior, Lars-Dominik Braun, jgart

This series adds pipx, a tool similar to pip but oriented towards installation
of Python applications rather than libraries, with automatic isolation of
installed packages.

Other distros are now changing pip to recommend using pipx instead[1]. Whether
or not Guix will do the same, it seems like a good idea to at least have pipx
available in the repos.

I was unsure whether python-pipx should go into python-build or
python-xyz. python-pip is declared in the former, python-virtualenv in the
latter. In the end I chose python-xyz.

Tests have been disabled because those of python-userpath rely on `docker pull`
and those of python-pipx rely on application wheels from PyPI. It might be
possible to enable at least some tests of python-pipx by using wheels from
Guix. Rn I did not, however, have time to investigate.

I tested the new package(s) with:

#BEGIN_EXAMPLE
./pre-inst-env guix lint python-userpath python-pipx
guix gc -D /gnu/store/*python-userpath-1.9.0 /gnu/store/*python-pipx-1.2.0
./pre-inst-env guix build python-userpath --rounds=3
./pre-inst-env guix build python-pipx --rounds=3
./pre-inst-env guix shell -C coreutils python-pipx findutils which less bash --network --no-cwd
pipx install pycowsay
pipx ensurepath
bash -l
pycowsay moooo
pipx uninstall pycowsay
#END_EXAMPLE

[1] https://pythonspeed.com/articles/externally-managed-environment-pep-668/

Wojtek Kosior (2):
  gnu: Add python-userpath.
  gnu: Add python-pipx.

 gnu/packages/python-xyz.scm | 77 +++++++++++++++++++++++++++++++++++++
 1 file changed, 77 insertions(+)


base-commit: 76e041f9eef85bb039c5251d3350c62ee2066883
-- 
2.41.0





^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2023-07-26  9:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-26  9:05 [bug#64869] [PATCH 0/2] Add pipx package manager for Python applications Wojtek Kosior via Guix-patches via
2023-07-26  9:09 ` [bug#64869] [PATCH 1/2] gnu: Add python-userpath Wojtek Kosior via Guix-patches via
2023-07-26  9:09 ` [bug#64869] [PATCH 2/2] gnu: Add python-pipx Wojtek Kosior via Guix-patches via

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).