Skip to content

Ensure packaging dependency is self-contained.#355

Merged
jsirois merged 1 commit into
pex-tool:masterfrom
jsirois:jsirois/issues/354
Jan 24, 2017
Merged

Ensure packaging dependency is self-contained.#355
jsirois merged 1 commit into
pex-tool:masterfrom
jsirois:jsirois/issues/354

Conversation

@jsirois
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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