python-setuptools/setuptools-5.4.1-create-sitedir.patch

19 lines
767 B
Diff
Raw Normal View History

Index: setuptools-15.0/setuptools/command/easy_install.py
Accepting request 242094 from home:sleep_walker:branches:devel:languages:python patch changes are now in patch name and mentioned in changelog entry - bump to 5.4.1 Changes between 5.4.1 and 3.6 * Python #7776: (ssl_support) Correct usage of host for validation when tunneling for HTTPS. * Issue #154: pkg_resources will now cache the zip manifests rather than re-processing the same file from disk multiple times, but only if the environment variable PKG_RESOURCES_CACHE_ZIP_MANIFESTS is set. Clients that package many modules in the same zip file will see some improvement in startup time by enabling this feature. This feature is not enabled by default because it causes a substantial increase in memory usage. * Issue #185: Make svn tagging work on the new style SVN metadata. Thanks cazabon! * Prune revision control directories (e.g .svn) from base path as well as sub-directories. * Added a Developer Guide to the official documentation. * Some code refactoring and cleanup was done with no intended behavioral changes. * During install_egg_info, the generated lines for namespace package .pth files are now processed even during a dry run. * Issue #202: Implemented more robust cache invalidation for the ZipImporter, building on the work in Issue #168. Special thanks to Jurko Gospodnetic and PJE. * Issue #220: Restored script templates. * Renamed script templates to end with .tmpl now that they no longer need to be processed by 2to3. Fixes spurious syntax errors during build/install. * Issue #218: Re-release of 3.8.1 to signal that it supersedes 4.x. * Incidentally, script templates were updated not to include the triple-quote escaping. * Issue #213: Use legacy StringIO behavior for compatibility under pbr. * Issue #218: Setuptools 3.8.1 superseded 4.0.1, and 4.x was removed from OBS-URL: https://build.opensuse.org/request/show/242094 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=70
2014-07-23 23:24:25 +02:00
===================================================================
--- setuptools-15.0.orig/setuptools/command/easy_install.py
+++ setuptools-15.0/setuptools/command/easy_install.py
@@ -415,6 +415,13 @@ class easy_install(Command):
instdir = normalize_path(self.install_dir)
Accepting request 242094 from home:sleep_walker:branches:devel:languages:python patch changes are now in patch name and mentioned in changelog entry - bump to 5.4.1 Changes between 5.4.1 and 3.6 * Python #7776: (ssl_support) Correct usage of host for validation when tunneling for HTTPS. * Issue #154: pkg_resources will now cache the zip manifests rather than re-processing the same file from disk multiple times, but only if the environment variable PKG_RESOURCES_CACHE_ZIP_MANIFESTS is set. Clients that package many modules in the same zip file will see some improvement in startup time by enabling this feature. This feature is not enabled by default because it causes a substantial increase in memory usage. * Issue #185: Make svn tagging work on the new style SVN metadata. Thanks cazabon! * Prune revision control directories (e.g .svn) from base path as well as sub-directories. * Added a Developer Guide to the official documentation. * Some code refactoring and cleanup was done with no intended behavioral changes. * During install_egg_info, the generated lines for namespace package .pth files are now processed even during a dry run. * Issue #202: Implemented more robust cache invalidation for the ZipImporter, building on the work in Issue #168. Special thanks to Jurko Gospodnetic and PJE. * Issue #220: Restored script templates. * Renamed script templates to end with .tmpl now that they no longer need to be processed by 2to3. Fixes spurious syntax errors during build/install. * Issue #218: Re-release of 3.8.1 to signal that it supersedes 4.x. * Incidentally, script templates were updated not to include the triple-quote escaping. * Issue #213: Use legacy StringIO behavior for compatibility under pbr. * Issue #218: Setuptools 3.8.1 superseded 4.0.1, and 4.x was removed from OBS-URL: https://build.opensuse.org/request/show/242094 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-setuptools?expand=0&rev=70
2014-07-23 23:24:25 +02:00
pth_file = os.path.join(instdir, 'easy-install.pth')
+ # make sure that the directory exists
+ if not os.path.exists(instdir):
+ try:
+ os.makedirs(instdir)
+ except (OSError,IOError):
+ self.cant_write_to_target()
+
# Is it a configured, PYTHONPATH, implicit, or explicit site dir?
is_site_dir = instdir in self.all_site_dirs