lists.arthurdejong.org
RSS feed

python-stdnum commit: r39 - python-stdnum

[Date Prev][Date Next] [Thread Prev][Thread Next]

python-stdnum commit: r39 - python-stdnum



Author: arthur
Date: Sun Sep  5 19:53:47 2010
New Revision: 39
URL: http://arthurdejong.org/viewvc/python-stdnum?view=rev&revision=39

Log:
have sdist target create a tarball with reasonable permissions

Modified:
   python-stdnum/setup.py

Modified: python-stdnum/setup.py
==============================================================================
--- python-stdnum/setup.py      Sun Aug 29 21:27:59 2010        (r38)
+++ python-stdnum/setup.py      Sun Sep  5 19:53:47 2010        (r39)
@@ -22,8 +22,14 @@
 """python-stdnum installation script."""
 
 import os
+import sys
 from setuptools import setup, find_packages
 
+# fix permissions for sdist
+if 'sdist' in sys.argv:
+    os.system('chmod -R a+rX .')
+    os.umask(022)
+
 setup(name='python-stdnum',
       version='0.2',
       packages=find_packages(),
--
To unsubscribe send an email to
python-stdnum-commits-unsubscribe@lists.arthurdejong.org or see
http://lists.arthurdejong.org/python-stdnum-commits