diff options
Diffstat (limited to 'user/py3-tz/zoneinfo-noinstall.patch')
-rw-r--r-- | user/py3-tz/zoneinfo-noinstall.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/user/py3-tz/zoneinfo-noinstall.patch b/user/py3-tz/zoneinfo-noinstall.patch new file mode 100644 index 000000000..a41e0a6cc --- /dev/null +++ b/user/py3-tz/zoneinfo-noinstall.patch @@ -0,0 +1,20 @@ +Patch pulled from Gentoo. Prevents installation of pkg tzinfo files +--- a/setup.py ++++ b/setup.py +@@ -15,15 +15,8 @@ + memail = 'stuart@stuartbishop.net' + packages = ['pytz'] + resources = ['zone.tab', 'locales/pytz.pot'] +-for dirpath, dirnames, filenames in os.walk(os.path.join('pytz', 'zoneinfo')): +- # remove the 'pytz' part of the path +- basepath = dirpath.split(os.path.sep, 1)[1] +- resources.extend([os.path.join(basepath, filename) +- for filename in filenames]) + package_data = {'pytz': resources} + +-assert len(resources) > 10, 'zoneinfo files not found!' +- + setup( + name='pytz', + version=pytz.VERSION, + |