summaryrefslogtreecommitdiff
path: root/user/py3-tz/zoneinfo-noinstall.patch
diff options
context:
space:
mode:
authorzlg <zlg@zlg.space>2018-11-21 03:20:58 -0800
committerzlg <zlg@zlg.space>2018-11-21 03:35:29 -0800
commitdad36fec1bde77520971a3af519279d5a307ce98 (patch)
tree44853a81a556c462ad3f9250a3a6fa3a3eb0569e /user/py3-tz/zoneinfo-noinstall.patch
parentf68fe057197d17af33c1f57e8c61d038623c5abc (diff)
downloadpackages-dad36fec1bde77520971a3af519279d5a307ce98.tar.gz
packages-dad36fec1bde77520971a3af519279d5a307ce98.tar.bz2
packages-dad36fec1bde77520971a3af519279d5a307ce98.tar.xz
packages-dad36fec1bde77520971a3af519279d5a307ce98.zip
user/py3-tz: new package
Diffstat (limited to 'user/py3-tz/zoneinfo-noinstall.patch')
-rw-r--r--user/py3-tz/zoneinfo-noinstall.patch20
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,
+