Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure packaging dependency is self-contained. #355

Merged
merged 1 commit into from
Jan 24, 2017

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Jan 23, 2017

This dependency was not included in the pex .bootstrap/ previously
leading to issues with use of pex as a library. We use the vendored
version from setuptools for now - which it leaks through its API. Notes
are added in the right spots to deal with setuptools de-vendoring of
packaging in its newest releases when we upgrade setuptools next.

Closes #354

This dependency was not included in the pex `.bootstrap/` previously
leading to issues with use of pex as a library. We use the vendored
version from setuptools for now - which it leaks through its API. Notes
are added in the right spots to deal with setuptools de-vendoring of
`packaging` in its newest releases when we upgrade setuptools next.
@jsirois
Copy link
Member Author

jsirois commented Jan 24, 2017

Now:

$ tox -e py27-package
$ zipinfo -1 dist/pex27 | grep packaging/specifiers
.bootstrap/pkg_resources/_vendor/packaging/specifiers.py
.bootstrap/pkg_resources/_vendor/packaging/specifiers.pyc
.deps/setuptools-33.1.1-py2.py3-none-any.whl/pkg_resources/_vendor/packaging/specifiers.py

I also verified setuptools 20.0.0 - our lower bound - has a vendored packaging/specifiers.py.

Copy link
Contributor

@kwlzn kwlzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jsirois jsirois merged commit d70f2c4 into pex-tool:master Jan 24, 2017
@jsirois jsirois deleted the jsirois/issues/354 branch January 24, 2017 00:05
kwlzn pushed a commit that referenced this pull request May 26, 2017
…r attribute required by PR 355 (#391)

In #355 package.py was updated to assume that the Requirement class has the specifier attribute.

The specifier attribute wasn't added to the Requirement class until setuptools 20.3 pypa/setuptools@de4bdcf

The error when there is an older setuptools is

Exception message: Requirement instance has no attribute 'specifier'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants