-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Merge pull request #933 from pypa/feature/581-depend-not-bundle"
- Loading branch information
Showing
67 changed files
with
9,044 additions
and
135 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,4 +13,3 @@ setuptools.egg-info | |
| *.swp | ||
| *~ | ||
| .hg* | ||
| requirements.txt | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| import re | ||
|
|
||
| from paver.easy import task, path as Path | ||
| import pip | ||
|
|
||
|
|
||
| def remove_all(paths): | ||
| for path in paths: | ||
| path.rmtree() if path.isdir() else path.remove() | ||
|
|
||
|
|
||
| @task | ||
| def update_vendored(): | ||
| vendor = Path('pkg_resources/_vendor') | ||
| # pip uninstall doesn't support -t, so do it manually | ||
| remove_all(vendor.glob('packaging*')) | ||
| remove_all(vendor.glob('six*')) | ||
| remove_all(vendor.glob('pyparsing*')) | ||
| remove_all(vendor.glob('appdirs*')) | ||
| install_args = [ | ||
| 'install', | ||
| '-r', str(vendor / 'vendored.txt'), | ||
| '-t', str(vendor), | ||
| ] | ||
| pip.main(install_args) | ||
| packaging = vendor / 'packaging' | ||
| for file in packaging.glob('*.py'): | ||
| text = file.text() | ||
| text = re.sub(r' (pyparsing|six)', r' pkg_resources.extern.\1', text) | ||
| file.write_text(text) | ||
| remove_all(vendor.glob('*.dist-info')) | ||
| remove_all(vendor.glob('*.egg-info')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,8 +45,8 @@ | |
| # Python 3.2 compatibility | ||
| import imp as _imp | ||
|
|
||
| import six | ||
| from six.moves import urllib, map, filter | ||
| from pkg_resources.extern import six | ||
| from pkg_resources.extern.six.moves import urllib, map, filter | ||
|
|
||
| # capture these to bypass sandboxing | ||
| from os import utime | ||
|
|
@@ -67,11 +67,12 @@ | |
| except ImportError: | ||
| importlib_machinery = None | ||
|
|
||
| import packaging.version | ||
| import packaging.specifiers | ||
| import packaging.requirements | ||
| import packaging.markers | ||
| import appdirs | ||
| from pkg_resources.extern import appdirs | ||
| from pkg_resources.extern import packaging | ||
| __import__('pkg_resources.extern.packaging.version') | ||
| __import__('pkg_resources.extern.packaging.specifiers') | ||
| __import__('pkg_resources.extern.packaging.requirements') | ||
| __import__('pkg_resources.extern.packaging.markers') | ||
This comment has been minimized.
Sorry, something went wrong.
jakirkham
Contributor
|
||
|
|
||
| if (3, 0) < sys.version_info < (3, 3): | ||
| raise RuntimeError("Python 3.3 or later is required") | ||
|
|
||
Empty file.
Oops, something went wrong.
Can probably still go with
io.openhere.