Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 607770 - dev-python/setuptools-34.0.2-r1 circular dep with dev-python/pyparsing
Summary: dev-python/setuptools-34.0.2-r1 circular dep with dev-python/pyparsing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-31 04:10 UTC by Mike Gilbert
Modified: 2017-01-31 04:44 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2017-01-31 04:10:11 UTC
1. Start with setuptools, packaging and pyparsing uninstalled.
2. Run emerge --oneshot setuptools

Merge order will be:

dev-python/packaging
dev-python/setuptools
dev-python/pyparsing

 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python2.7 setup.py build
Traceback (most recent call last):
  File "setup.py", line 11, in <module>
    import setuptools
  File "/x/portage/dev-python/setuptools-34.0.2-r1/work/setuptools-34.0.2-python2_7/setuptools/__init__.py", line 12, in <module>
    import setuptools.version
  File "/x/portage/dev-python/setuptools-34.0.2-r1/work/setuptools-34.0.2-python2_7/setuptools/version.py", line 1, in <module>
    import pkg_resources
  File "/x/portage/dev-python/setuptools-34.0.2-r1/work/setuptools-34.0.2-python2_7/pkg_resources/__init__.py", line 72, in <module>
    import packaging.requirements
  File "/usr/lib64/python2.7/site-packages/packaging/requirements.py", line 9, in <module>
    from pyparsing import stringStart, stringEnd, originalTextFor, ParseException
ImportError: No module named pyparsing
Comment 1 Mike Gilbert gentoo-dev 2017-01-31 04:44:49 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=26581ccc941f3b0d48abd79751a63d761065ea0c

commit 26581ccc941f3b0d48abd79751a63d761065ea0c
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Mon Jan 30 23:34:32 2017 -0500

    dev-python/pyparsing: force distutils to avoid circular dep with setuptools
    
    Bug: https://bugs.gentoo.org/607770
    Package-Manager: Portage-2.3.3_p42_p432967, Repoman-2.3.1_p35_p432968

 dev-python/pyparsing/files/distutils.patch   | 11 +++++++++++
 dev-python/pyparsing/pyparsing-2.1.10.ebuild | 21 ++++++++++++++++++---
 2 files changed, 29 insertions(+), 3 deletions(-)