me
/
guix
Archived
1
0
Fork 0
Commit Graph

2255 Commits (29eee5f631c99cb8544dbbcc252e5a69a2c136ea)

Author SHA1 Message Date
Christopher Baines a8448da0f4
Merge branch 'master' into core-updates 2021-03-06 00:18:30 +00:00
Leo Famulari 3905580180
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.
2021-03-02 16:55:06 -05:00
Greg Hogan 10b909a024
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>
2021-02-25 14:41:41 -05:00
Leo Famulari 84e082e317
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.
2021-02-23 14:12:33 -05:00
Leo Famulari f08c7cb0c7
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.
2021-02-19 17:58:54 -05:00
Maxim Cournoyer 6867644250
gnu: pypy3: Do not alter PYTHONPATH.
* gnu/packages/python.scm (pypy3): Do not alter PYTHONPATH.
2021-02-01 11:54:01 -05:00
Maxim Cournoyer cb72f9a773
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.
2021-02-01 11:53:42 -05:00
Maxim Cournoyer 5f20a34745
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.
2021-01-15 16:33:09 -05:00
Maxim Cournoyer b5c4f5d9ee
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.
2021-01-12 23:55:48 -05:00
Maxim Cournoyer f1eea19c9a
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.
2021-01-12 22:00:42 -05:00
Maxim Cournoyer 44b0ffcf00
gnu: python-3.8: Fix indentation.
* gnu/packages/python.scm (python-3.8): Fix indentation.
2021-01-12 22:00:42 -05:00
Marius Bakke bbe4ed65ed
Merge branch 'master' into ungrafting 2020-12-21 23:42:10 +01:00
Tanguy Le Carrour 5fe87ef51c
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>
2020-12-14 10:34:31 +01:00
Marius Bakke f936a300b4
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.
2020-12-08 22:57:53 +01:00
Christopher Baines ff01206345
Merge remote-tracking branch 'origin/master' into core-updates 2020-11-29 17:34:18 +00:00
Jan (janneke) Nieuwenhuizen 5319f716cf
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.
2020-10-26 15:39:40 +01:00
Jan (janneke) Nieuwenhuizen e6320ba204
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.
2020-10-26 15:53:37 +01:00
Maxim Cournoyer 6731fc6ab8
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.
2020-10-20 21:36:43 -04:00
Maxim Cournoyer 4e0b3d7f9f
gnu: python-2.7: Update to 2.7.18.
* gnu/packages/python.scm (python-2.7): Update to 2.7.18.
2020-10-20 21:36:35 -04:00
Maxim Cournoyer fbb74c82e1
gnu: python-2.7: Fix indentation.
* gnu/packages/python.scm (python-2.7): Fix indentation.
2020-10-20 21:36:27 -04:00
Maxim Cournoyer 5e2140511c
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
2020-10-19 13:11:40 -04:00
Nicolas Goaziou 7806e568f6
gnu: micropython: Update to 1.13.
* gnu/packages/python.scm (micropython): Update to 1.13.
2020-09-29 12:16:20 +02:00
Greg Hogan 8944f1a4a4
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>
2020-09-18 14:41:48 -04:00
Pierre Neidhardt 24244f3fbf
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.
2020-09-14 10:35:05 +02:00
Efraim Flashner 399d89b5c8
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.
2020-07-13 15:51:46 +03:00
Marius Bakke c8a4e59ac4
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.
2020-06-30 21:30:52 +02:00
Lars-Dominik Braun 625cdb05d7
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>
2020-06-01 00:51:39 +02:00
nikita 3c986a7dc2
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>
2020-05-13 09:30:26 +03:00
Jan (janneke) Nieuwenhuizen 189bfb555d
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.
2020-04-19 16:18:00 +02:00
Marius Bakke 3cff86db8a
gnu: Python: Move arm-alignment.patch to a native-input + phase.
This follows up 67ca82e6dd 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.
2020-04-02 17:11:17 +02:00
Marius Bakke 67ca82e6dd
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.
2020-04-01 12:58:32 +02:00
Marius Bakke 53453242b7
gnu: Python: Update to 3.8.2.
* gnu/packages/python.scm (python-3.8): Update to 3.8.2.
2020-03-05 23:36:04 +01:00
Marius Bakke b15d1c467f
gnu: Python: Update to 3.8.1.
* gnu/packages/python.scm (python-3.7): Rename to ...
(python-3.8): ... this.  Update to 3.8.1.
[source](patches): Add "python-3.8-fix-tests.patch".
[source](snippet): Adjust for renamed file.
(python-3): Alias to PYTHON-3.8.
* gnu/packages/patches/python-3-search-paths.patch: Adjust for 3.8.
* gnu/packages/patches/python-3.8-search-paths.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
2020-01-24 20:44:29 +01:00
Marius Bakke 2c854762ce
gnu: python2: Update to 2.7.17.
* gnu/packages/python.scm (python-2.7): Update to 2.7.17.
2020-01-14 18:31:36 +01:00
Marius Bakke 5f1000d5d4
gnu: libffi: Update to 3.3.
* gnu/packages/patches/libffi-3.2.1-complex-alpha.patch: Delete file.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/libffi.scm (libffi): Update to 3.3.
[source](patches): Remove.
* gnu/packages/python.scm (python-3.7)[arguments]: Remove workaround.
2019-12-05 17:59:00 +01:00
Marius Bakke 9d5aa00906
Merge branch 'master' into core-updates 2019-12-05 17:57:35 +01:00
Tanguy Le Carrour af6a9fc276
gnu: Add python-3.8.
* gnu/packages/python.scm (python-3.8): New public variable.
[source]: Add patches to skip four tests.
* gnu/packages/patches/python-3.8-search-paths.patch: New file.
* gnu/packages/patches/python-3.8-fix-tests.patch: New file.

Signed-off-by: Marius Bakke <mbakke@fastmail.com>
2019-11-20 00:16:51 +01:00
Mathieu Othacehe ceb9de75a6
gnu: python: Further cross-compilation fixes.
* gnu/packages/patches/python-2.7-search-paths.patch: Add cross-compilation
support.
* gnu/packages/patches/python-3-search-paths.patch: Ditto.
* gnu/packages/patches/python-cross-compile.patch: New patch.
* gnu/local.mk (dist_patch_DATA): Add above new patch.
* gnu/packages/python.scm (python-2.7)[patches]: Add new patch above,
[arguments]: Set _PYTHON_HOST_PLATFORM env variable when cross compiling.
2019-09-24 08:12:54 +02:00
Mathieu Othacehe 57ec9861f4
gnu: python: Fix cross compilation.
* gnu/packages/python.scm (python-2.7)[arguments]: Add a configure flag to
disable a check failing when cross-compiling. This is covered here:
https://lists.yoctoproject.org/pipermail/poky/2013-June/008997.html,
[native-inputs]: Add self and which when cross-compiling,
(python-3.7)[arguments]: Refer to native python when cross-compiling.
2019-09-24 08:12:53 +02:00
Ludovic Courtès 9ff87bb996
Merge branch 'master' into core-updates 2019-09-17 16:27:15 +02:00
Efraim Flashner 28ac73358f
gnu: micropython: Update to 1.11.
* gnu/packages/python.scm (micropython): Update to 1.11.
2019-09-08 14:43:15 +03:00
Marius Bakke 680bc34da4
gnu: Python: Update to 3.7.4.
* gnu/packages/python.scm (python-3.7): Update to 3.7.4.
[source](snippet): Move disabled tests ...
[arguments]<#:make-flags>: ... here.  Enable previously failing tests.
<#:phases>: Add 'set-TZDIR'.
[native-inputs]: Add TZDATA-FOR-TESTS.
* gnu/packages/commencement.scm (python-boot0)[arguments]: Clear <#:make-flags>.
Delete 'set-TZDIR' phase.
* gnu/packages/patches/python-3-fix-tests.patch: Disable two new tests that do
not work in the build container.  Adjust context.
2019-07-09 20:59:58 +02:00
Marius Bakke fcb5493793
gnu: Python: Avoid needless reference on coreutils.
* gnu/packages/python.scm (python-2.7)[arguments]: Pass "INSTALL" and
"MKDIR_P" in <#:configure-flags>.
2019-07-07 16:51:26 +02:00
Marius Bakke 5f3f703918
gnu: glibc: Update to 2.29.
* gnu/packages/patches/glibc-bootstrap-system.patch,
gnu/packages/patches/glibc-supported-locales.patch: Adjust for glibc 2.29.
* gnu/packages/patches/glibc-2.28-supported-locales.patch,
gnu/packages/patches/glibc-CVE-2019-7309.patch,
gnu/packages/patches/glibc-CVE-2019-9169.patch,
gnu/packages/patches/glibc-2.29-git-updates.patch: New files.
* gnu/local.mk (dist_patch_DATA): Adjust accordingly.
* gnu/packages/base.scm (glibc): Update to 2.29.
[source](patches): Add 'glibc-CVE-2019-7309.patch',
'glibc-CVE-2019-9169.patch', and 'glibc-2.29-git-updates.patch'.  Remove
'glibc-hurd-magic-pid.patch'.
[native-inputs]: Add PYTHON-MINIMAL.
(glibc-2.28): New public variable.
* gnu/packages/commencement.scm (expat-sans-tests, python-boot0): New variables.
(glibc-final-with-bootstrap-bash)[native-inputs]: Add PYTHON-BOOT0.
* gnu/packages/python.scm (python-3.7)[arguments]: Disable test that fails
with glibc 2.29.
2019-07-02 16:45:17 +02:00
Jeremiah@pdp10.guru e7041c8ef8
gnu: python: Allow building on low-memory systems.
* gnu/packages/python.scm (python-3.7)[source]: Delete memory-intensive test.

Signed-off-by: Marius Bakke <mbakke@fastmail.com>
2019-06-20 23:56:59 +02:00
Marius Bakke 6cb1ef9ea2
Merge branch 'staging' into core-updates 2019-06-20 23:38:56 +02:00
Efraim Flashner cb13618b6d
gnu: python2: Add 'cpe-name' property.
* gnu/packages/python.scm (python2)[properties]: New field.
2019-06-18 21:02:42 +03:00
Marius Bakke 57df83e07d
Merge branch 'staging' into core-updates 2019-05-25 00:25:15 +02:00
Brendan Tildesley dcfa0acd7b
Correct email and license info for Brendan Tildesley.
* gnu/packages/audio.scm: Correct email and license info.
* gnu/packages/ebook.scm: Correct email and license info.
* gnu/packages/fonts.scm: Correct email and license info.
* gnu/packages/freedesktop.scm: Correct email and license info.
* gnu/packages/gnome.scm: Correct email and license info.
* gnu/packages/linux.scm: Correct email and license info.
* gnu/packages/lxde.scm: Correct email and license info.
* gnu/packages/python-web.scm: Correct email and license info.
* gnu/packages/python-xyz.scm: Correct email and license info.
* gnu/packages/python.scm: Correct email and license info.
* gnu/packages/video.scm: Correct email and license info.
* gnu/packages/web.scm: Correct email and license info.

Signed-off-by: Danny Milosavljevic <dannym@scratchpost.org>
2019-05-05 17:16:51 +02:00
Maxim Cournoyer a5e9413ce8
gnu: python: Disable failing test.
Fixes issue #35556 (see: https://bugs.gnu.org/35556).

* gnu/packages/python.scm (python-3.7)[make-flags]: Exclude the test "test_asyncio",
which currently fails.
2019-05-03 23:46:29 -04:00