summaryrefslogtreecommitdiff
path: root/gnu/packages/python.scm
Commit message (Expand)AuthorAgeFilesLines
...
* | gnu: Python: Fix bytecode compilation.•••* gnu/packages/python.scm (python-3.9)[arguments]: In the rebuild-bytecode phase, actully run Python instead of defining an anonymous procedure. While at it, create all optimization levels with the same command instead of running once for each level. Marius Bakke2021-07-231-17/+12
* | gnu: Python: Do not embed timestamps in wheel files.•••* gnu/packages/python.scm (python-3.9)[arguments]: Reset timestamps before zipping wheels. While at it, remove redundant regex argument. Marius Bakke2021-07-231-3/+9
* | gnu: Python: Remove trailing #t's.•••* gnu/packages/python.scm (python-2.7)[source, arguments]: Remove trailing #t's. (wrap-python3)[arguments]: Likewise. Marius Bakke2021-07-231-20/+10
* | gnu: Python: Update to 3.9.6.•••* gnu/packages/python.scm (python-3.9): Update to 3.9.6. Marius Bakke2021-07-231-2/+2
* | python: Fix reference to input when cross-compiling.•••"sitecustomize.py" is a native input, so look it up in 'native-inputs', not 'inputs'. * gnu/packages/python.scm (customize-site): Look up "sizecustomize.py" in 'native-inputs', not 'inputs'. Signed-off-by: Mathieu Othacehe <othacehe@gnu.org> Maxime Devos2021-07-141-2/+3
* | gnu: python: Move idle to a separate output.•••idle is a programming environment that is not useful for building packages, but it is still useful for end users. This saves 5MB in the default output. * gnu/packages/python.scm (python-2.7)[outputs]: Add `idle'. [arguments]: Move idle files in the new output. (wrap-python): Do not wrap idle since it is in a different output. Julien Lepiller2021-06-111-3/+25
* | gnu: python: Do not install static libraries.•••This is something Fedora already does since 2010, so it should be safe, and saves a lot of space. * gnu/packages/patches/python-2.7-no-static-lib.patch: New file. * gnu/packages/patches/python-3-no-static-lib.patch: New file. * gnu/local.mk (dist_patch_DATA): Add them. * gnu/packages/python.scm (python-2.7, python-3): Use them. Julien Lepiller2021-06-111-2/+4
* | gnu: python: Enable optimizations.•••As a result, python execution time of scripts is decreased by 6 to 40%. gnu/packages/python (python-2.7)[arguments]: Add configure and make flags to optimize the resulting python. Julien Lepiller2021-06-111-1/+9
* | gnu: python: Remove unnecessary files.•••* gnu/packages/python.scm (python2)[arguments]: Remove files built during the test phase. (python3)[arguments]: Also remove windows binaries shipped with the sources. Julien Lepiller2021-06-111-2/+33
* | Merge branch 'master' into core-updates••• Conflicts: gnu/local.mk gnu/packages/algebra.scm gnu/packages/bioinformatics.scm gnu/packages/curl.scm gnu/packages/docbook.scm gnu/packages/emacs-xyz.scm gnu/packages/maths.scm gnu/packages/plotutils.scm gnu/packages/python-web.scm gnu/packages/python-xyz.scm gnu/packages/radio.scm gnu/packages/readline.scm gnu/packages/tls.scm gnu/packages/xml.scm gnu/packages/xorg.scm Marius Bakke2021-06-061-2/+2
|\|
| * gnu: net-snmp: Omit static library.•••* gnu/packages/networking.scm (net-snmp)[arguments]: Add "--disable-static" configure flag. Tobias Geerinckx-Rice2021-05-301-2/+2
* | gnu: Python: Update to 3.9.5.•••* gnu/packages/python.scm (python-3.9): Update to 3.9.5. Marius Bakke2021-05-091-2/+2
* | Merge branch 'master' into core-updates••• Conflicts: gnu/local.mk gnu/packages/bioinformatics.scm gnu/packages/django.scm gnu/packages/gtk.scm gnu/packages/llvm.scm gnu/packages/python-web.scm gnu/packages/python.scm gnu/packages/tex.scm guix/build-system/asdf.scm guix/build/emacs-build-system.scm guix/profiles.scm Marius Bakke2021-05-091-9/+2
|\|
| * gnu: Python: Absorb grafted replacement.•••* gnu/packages/python.scm (python-3.8)[source]: Add 'python-3.8-CVE-2021-3177.patch'. [replacement]: Remove field. (python-3.8/fixed): Remove variable. Leo Famulari2021-04-161-9/+1
| * gnu: Python 2: Absorb grafted replacement.•••* gnu/packages/python.scm (python-2.7)[source]: Add 'python-2.7-CVE-2021-3177.patch'. [replacement]: Remove field. (python-2.7/fixed): Remove variable. Leo Famulari2021-04-161-10/+2
* | Merge remote-tracking branch 'origin/master' into core-updatesEfraim Flashner2021-03-241-6/+5
|\|
| * gnu: Use PACKAGE/INHERIT in more places.•••* gnu/packages/algebra.scm (fftwf, fftw-openmpi), gnu/packages/audio.scm (ztoolkit-rsvg), gnu/packages/bioinformatics.scm (python2-dendropy), gnu/packages/boost.scm (boost-with-python2), gnu/packages/check.scm (python2-mock, python2-pytest-mock), gnu/packages/cups.scm (hplip-minimal), gnu/packages/freedesktop.scm (libinput-minimal), gnu/packages/gettext.scm (gnu-gettext), gnu/packages/glib.scm (python2-pygobject), gnu/packages/gnome.scm (gdl-minimal, libsoup-minimal, python2-pyatspi), gnu/packages/groff.scm (groff-minimal), gnu/packages/jami.scm (ffmpeg-jami), gnu/packages/libcanberra.scm (libcanberra/gtk+-2), gnu/packages/lirc.scm (python2-lirc), gnu/packages/llvm.scm (clang-runtime-3.5), gnu/packages/mpi.scm (java-openmpi, openmpi-thread-multiple), gnu/packages/node.scm (libnode), gnu/packages/onc-rpc.scm (libtirpc/hurd), gnu/packages/python-compression.scm (bitshuffle-for-snappy), gnu/packages/python-crypto.scm (python2-pycrypto, python2-cryptography) (python2-cryptography, python2-m2crypto), gnu/packages/python-web.scm (python2-html2text, python2-tornado) (python2-terminado, python2-ndg-httpsclient, python2-websocket-client) (python2-rauth, python2-url, python2-s3transfer), gnu/packages/python-xyz.scm (python2-psutil, python2-serpent) (python2-humanfriendly, python2-empy, python2-parse-type, python2-polib) (python2-jsonschema, python2-pystache, python2-cython, python2-numpydoc) (python2-ipyparallel, python2-traitlets, python2-dbus) (python2-beautifulsoup4, python2-pep517, python2-flake8, python2-llfuse) (python2-tlsh, python-file, python2-notebook, python-jupyter-console-minimal) (python2-contextlib2, python2-promise, python2-anyjson, python2-amqp) (python2-kombu, python2-billiard, python2-celery, python2-whoosh) (python2-jellyfish, python-rope, ptpython-2, python2-binaryornot) (python2-setproctitle, python2-argcomplete, python2-xopen, python2-isort) (python2-radon, python2-rfc6555, python2-activepapers, python2-send2trash) (python2-cloudpickle, python2-reparser), gnu/packages/python.scm (python2-called-python), gnu/packages/qt.scm (python2-sip, python-pyqt-without-qtwebkit, python2-pyqt) (python-qscintilla, python-pyqt+qscintilla), gnu/packages/scanner.scm (sane-backends), gnu/packages/sdl.scm (guile3.0-sdl2), gnu/packages/selinux.scm (checkpolicy, libselinux, libsemanage, secilc) (python-sepolgen, policycoreutils), gnu/packages/serialization.scm (lua5.1-libmpack, lua5.2-libmpack), gnu/packages/simulation.scm (fenics), gnu/packages/statistics.scm (python2-statsmodels), gnu/packages/texinfo.scm (info-reader), gnu/packages/wxwidgets.scm (wxwidgets-gtk2, wxwidgets-gtk2-3.1), gnu/packages/xml.scm (xmlsec-nss), gnu/packages/xorg.scm (uim-gtk, uim-qt), guix/build-system/python.scm (package-with-explicit-python) (strip-python2-variant): Use PACKAGE/INHERIT. Mark H Weaver2021-03-171-2/+1
| * gnu: micropython: Update to 1.14.•••* gnu/packages/python.scm (micropython): Update to 1.14. Tobias Geerinckx-Rice2021-03-131-4/+4
* | Merge branch 'master' into core-updatesChristopher Baines2021-03-061-2/+10
|\|
| * gnu: Python 2: Fix CVE-2021-3177.•••* gnu/packages/patches/python-2.7-CVE-2021-3177.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/python.scm (python-2.7)[replacement]: New field. (python-2.7/fixed): New variable. Leo Famulari2021-03-021-0/+9
| * gnu: Python 3.9: Update to 3.9.2.•••* gnu/packages/python.scm (python-3.9): Update to 3.9.2. [source]: Remove obsolete patch. * gnu/packages/patches/python-3.9-CVE-2021-3177.patch: Delete file. * gnu/local.mk (dist_patch_DATA): Remove it. Signed-off-by: Leo Famulari <leo@famulari.name> Greg Hogan2021-02-251-3/+3
| * gnu: Python: Fix CVE-2021-3177.•••* gnu/packages/patches/python-3.8-CVE-2021-3177.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/python.scm (python-3.8)[replacement]: New field. (python-3.8/fixed): New variable. Leo Famulari2021-02-231-0/+9
| * gnu: Python 3.9: Fix CVE-2021-3177.•••* gnu/packages/patches/python-3.9-CVE-2021-3177.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/python.scm (python-3.9)[source]: Use it. Leo Famulari2021-02-191-1/+2
| * Merge branch 'master' into ungraftingMarius Bakke2020-12-211-0/+25
| |\
| | * gnu: Add python-3.9.•••* gnu/packages/python.scm (python-3.9): New variable. * gnu/packages/patches/python-3.9-fix-tests.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Tanguy Le Carrour2020-12-141-0/+25
| * | gnu: Python: Fix CVE-2020-26116.•••* gnu/packages/patches/python-CVE-2020-26116.patch: New file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/python.scm (python-3.8)[source](patches): Add it. Marius Bakke2020-12-081-0/+1
| |/
* | gnu: pypy3: Do not alter PYTHONPATH.•••* gnu/packages/python.scm (pypy3): Do not alter PYTHONPATH. Maxim Cournoyer2021-02-011-3/+0
* | gnu: python: Replace PYTHONPATH by GUIX_PYTHONPATH.•••Using PYTHONPATH as a mean to discover the Python packages had the following issues: 1. It is not versioned, so different versions of Python would clash if installed in a shared profile. 2. It would interfere with the host Python site on foreign distributions, sometimes preventing a a user to login their GDM session (!). 3. It would take precedence over user installed Python packages installed through pip. 4. It would leak into Python virtualenvs, which are supposed to create isolated Python environments. This changes fixes the above issues by making use of a sitecustomize.py module. The newly introduced GUIX_PYTHONPATH environment variable is read from the environment, filtered for the current Python version of the interpreter, and spliced in 'sys.path' just before Python's own site location, which provides the expected behavior. * gnu/packages/aux-files/python/sitecustomize.py: New file. * Makefile.am: Register it. * gnu/packages/python.scm (customize-site) (guix-pythonpath-search-path): New procedures. (python-2.7)[phases]{install-sitecustomize.py}: New phase. [native-inputs]{sitecustomize.py}: New input. [native-search-paths]: Replace PYTHONPATH with GUIX_PYTHONPATH. (python-3.9)[native-search-paths]: Likewise. [phases]{install-sitecustomize}: Override with correct version. [native-search-paths]: Replace PYTHONPATH with GUIX_PYTHONPATH. * gnu/packages/commencement.scm (python-boot0): [phases]{install-sitecustomize}: Likewise. [native-inputs]{sitecustomize.py}: New input. [native-search-paths]: Replace PYTHONPATH with GUIX_PYTHONPATH. * guix/build/python-build-system.scm (site-packages): Do not add a trailing '/'. squash! gnu: python: Replace PYTHONPATH by GUIX_PYTHONPATH. Maxim Cournoyer2021-02-011-16/+41
* | gnu: python-3.9: Add a search path specification for PYTHONTZPATH.•••Python 3.9 implemented PEP 615 (<)https://www.python.org/dev/peps/pep-0615/>), which relies on either a compiled time default value or the PYTHONTZPATH environment variable to find the system tzdata database. * gnu/packages/python.scm (python-3.9)[native-search-paths]: Add a new search path specification for PYTHONTZPATH. Maxim Cournoyer2021-01-151-1/+6
* | gnu: python: Update to 3.9.1 and streamline package definition.•••* gnu/packages/python.scm (python-3.8): Rename to... (python-3.9): ... this. Update version to 3.9.1. [arguments]{make-flags}: Restore test_socket test. [phases]{unset-SOURCE_DATE_EPOCH, reset-SOURCE_DATE_EPOCH}: Remove phases. {rebuild-bytecode}: Simplify code. Set the invalidation-mode argument of the compileall module to "unchecked-hash", to ensure determinism. (python-3): Adjust to refer to python-3.9. * gnu/packages/patches/python-3-fix-tests.patch: Rebase and extend patch. * gnu/packages/patches/python-3.8-fix-tests.patch: Delete file. * gnu/local.mk (dist_patch_DATA): De-register it. Maxim Cournoyer2021-01-121-36/+25
* | gnu: python-3.8: Apply python-3-arm-alignment.patch unconditionally.•••* gnu/packages/python.scm (python-3.8)[source]: Add "python-3-arm-alignment.patch" to the patches field. [phases]{apply-alignment-patch}: Remove phase. [native-inputs]: Remove arm-alignment.patch. Maxim Cournoyer2021-01-121-25/+2
* | gnu: python-3.8: Fix indentation.•••* gnu/packages/python.scm (python-3.8): Fix indentation. Maxim Cournoyer2021-01-121-28/+29
* | Merge remote-tracking branch 'origin/master' into core-updatesChristopher Baines2020-11-291-1/+33
|\|
| * gnu: python: Disable failing tests for the Hurd.•••Fixes <https://bugs.gnu.org/43860>. * gnu/packages/python.scm (python-3.8)[arguments]: When building for the Hurd, disable more tests. Jan (janneke) Nieuwenhuizen2020-10-261-1/+33
* | gnu: python: Move Hurd-specific configure fix into a patch.•••* gnu/packages/patches/python-3-configure-hurd.patch: this New file. * gnu/local.mk (dist_patch_DATA): Add it. * gnu/packages/python.scm (python-3.8)[source]: Use it. [arguments]: Remove "support-hurd-cross-compile" stage. Jan (janneke) Nieuwenhuizen2020-10-261-12/+2
* | gnu: python-2.7: Byte compile files with a single optimization level.•••* gnu/packages/python.scm (python-2.7)[phases]{rebuild-bytecode}: Byte compile using optimization level, -OO. Provide the output directory as the source argument to 'compileall', instead of looping over each individual source file. Maxim Cournoyer2020-10-201-17/+16
* | gnu: python-2.7: Update to 2.7.18.•••* gnu/packages/python.scm (python-2.7): Update to 2.7.18. Maxim Cournoyer2020-10-201-2/+2
* | gnu: python-2.7: Fix indentation.•••* gnu/packages/python.scm (python-2.7): Fix indentation. Maxim Cournoyer2020-10-201-143/+143
* | Merge branch 'staging'•••Conflicts: gnu/packages/admin.scm gnu/packages/commencement.scm gnu/packages/gdb.scm gnu/packages/llvm.scm gnu/packages/package-management.scm gnu/packages/tls.scm Maxim Cournoyer2020-10-191-3/+2
|\|
| * gnu: micropython: Update to 1.13.•••* gnu/packages/python.scm (micropython): Update to 1.13. Nicolas Goaziou2020-09-291-3/+2
* | gnu: Python 3: Update to 3.8.5.•••* gnu/packages/python.scm (python-3.8): Update to 3.8.5. Signed-off-by: Leo Famulari <leo@famulari.name> Greg Hogan2020-09-181-2/+3
|/
* gnu: python-wrapper: Mention pip in description.•••* gnu/packages/python.scm (python-wrapper)[description]: Mention that `pip' won't work properly if both python and python-wrapper are installed. Pierre Neidhardt2020-09-141-1/+3
* gnu: micropython: Update to 1.12.•••* gnu/packages/python.scm (micropython): Update to 1.12. [arguments]: Add phase to compile mpy-cross before compiling micropython. Efraim Flashner2020-07-131-4/+8
* gnu: Python: Support cross-compiling for the Hurd.•••* gnu/packages/python.scm (python-3.8): When cross-compiling for Hurd, add substitution for the configure script. Marius Bakke2020-06-301-0/+11
* gnu: Add pypy3.•••* gnu/packages/python.scm (pypy3): New public variable. * gnu/packages/patches/pypy3-7.3.1-fix-tests.patch: New file. * gnu/local.mk (dist_patch_DATA): Add it Signed-off-by: Ludovic Courtès <ludo@gnu.org> Lars-Dominik Braun2020-06-011-0/+171
* mailmap: Update entries for Nikita.•••* .mailmap: change email and name for Nikita. * Makefile.am, doc/guix.texi, etc/completion/fish/guix.fish, gnu/packages/accessibility.scm, gnu/packages/admin.scm, gnu/packages/audio.scm, gnu/packages/autotools.scm, gnu/packages/cdrom.scm, gnu/packages/check.scm, gnu/packages/cinnamon.scm, gnu/packages/compression.scm, gnu/packages/crypto.scm, gnu/packages/databases.scm, gnu/packages/django.scm, gnu/packages/dns.scm, gnu/packages/elixir.scm, gnu/packages/emacs-xyz.scm, gnu/packages/emacs.scm, gnu/packages/enlightenment.scm, gnu/packages/erlang.scm, gnu/packages/fonts.scm, gnu/packages/fontutils.scm, gnu/packages/forth.scm, gnu/packages/fvwm.scm, gnu/packages/games.scm, gnu/packages/gl.scm, gnu/packages/gnome.scm, gnu/packages/gnunet.scm, gnu/packages/gnupg.scm, gnu/packages/gtk.scm, gnu/packages/guile-wm.scm, gnu/packages/guile-xyz.scm, gnu/packages/haskell-apps.scm, gnu/packages/haskell-check.scm, gnu/packages/haskell-crypto.scm, gnu/packages/haskell-xyz.scm, gnu/packages/haskell.scm, gnu/packages/image-viewers.scm, gnu/packages/image.scm, gnu/packages/irc.scm, gnu/packages/language.scm, gnu/packages/libcanberra.scm, gnu/packages/linux.scm, gnu/packages/lisp-xyz.scm, gnu/packages/lisp.scm, gnu/packages/lolcode.scm, gnu/packages/lxde.scm, gnu/packages/lxqt.scm, gnu/packages/mail.scm, gnu/packages/markup.scm, gnu/packages/mate.scm, gnu/packages/maths.scm, gnu/packages/mc.scm, gnu/packages/messaging.scm, gnu/packages/music.scm, gnu/packages/ncurses.scm, gnu/packages/networking.scm, gnu/packages/nickle.scm, gnu/packages/openbox.scm, gnu/packages/pdf.scm, gnu/packages/perl-check.scm, gnu/packages/perl.scm, gnu/packages/python-compression.scm, gnu/packages/python-crypto.scm, gnu/packages/python-web.scm, gnu/packages/python-xyz.scm, gnu/packages/python.scm, gnu/packages/qt.scm, gnu/packages/ruby.scm, gnu/packages/rust.scm, gnu/packages/scheme.scm, gnu/packages/serialization.scm, gnu/packages/shells.scm, gnu/packages/ssh.scm, gnu/packages/suckless.scm, gnu/packages/tbb.scm, gnu/packages/telephony.scm, gnu/packages/text-editors.scm, gnu/packages/textutils.scm, gnu/packages/time.scm, gnu/packages/tls.scm, gnu/packages/tor.scm, gnu/packages/version-control.scm, gnu/packages/video.scm, gnu/packages/vim.scm, gnu/packages/web.scm, gnu/packages/wm.scm, gnu/packages/xdisorg.scm, gnu/packages/xfce.scm, gnu/packages/xml.scm, gnu/packages/xorg.scm, gnu/services/certbot.scm, gnu/services/desktop.scm, gnu/services/version-control.scm, gnu/services/web.scm, guix/import/hackage.scm, guix/licenses.scm: Likewise. Signed-off-by: Efraim Flashner <efraim@flashner.co.il> nikita2020-05-131-1/+1
* gnu: python: Build fix for the Hurd.•••* gnu/packages/python.scm (python-2.7)[arguments]: Add `fix-regen' stage to correct a reference to "/usr". (python-3.8): Remove build fix for 2.x..3.5.9 that breaks on 3.8.2. Jan (janneke) Nieuwenhuizen2020-04-191-1/+13
* gnu: Python: Move arm-alignment.patch to a native-input + phase.•••This follows up 67ca82e6ddc9f1c87fa8c033729a1f53b7c2b3ba which was ineffective when running 'guix build --system=armhf-linux python' on e.g. x86_64-linux because the conditional would always return the native system. * gnu/packages/python.scm (python-3.8)[native-inputs]: Add "arm-alignment.patch". [arguments]: Add phase to apply it. [source](patches): Remove it. * gnu/packages/commencement.scm (python-boot0): Prevent inheriting the phase. Marius Bakke2020-04-021-17/+31
* gnu: Python: Fix test failure on ARMv7.•••* gnu/packages/patches/python-3-arm-alignment.patch: New file. * gnu/local.mk (dist_patch_DATA): Adjust accordingly. * gnu/packages/python.scm (python-3.8)[source](patches): Add it when the current system is ARM. Marius Bakke2020-04-011-7/+20
* gnu: Python: Update to 3.8.2.•••* gnu/packages/python.scm (python-3.8): Update to 3.8.2. Marius Bakke2020-03-051-2/+2