Permalink
Browse files

improved the setup.py to remove MANIFEST and improved MANIFEST.in

  • Loading branch information...
1 parent 7f60da7 commit e4624e73a7f831db22d8fc80602740b996a1bbe1 @b45ch1 committed May 11, 2010
Showing with 6 additions and 2 deletions.
  1. +1 −1 .gitignore
  2. +1 −1 MANIFEST.in
  3. +4 −0 setup.py
View
@@ -27,8 +27,8 @@ version.py
SConstruct
+dist
build
-
report
View
@@ -1,2 +1,2 @@
-recursive-include *
+recursive-include *.py
View
@@ -57,6 +57,10 @@
# If in git or something, bypass the svn rev
if os.path.exists('.svn'):
FULLVERSION += svn_version()
+
+# BEFORE importing distutils, remove MANIFEST. distutils doesn't properly
+# update it when the contents of directories change.
+if os.path.exists('MANIFEST'): os.remove('MANIFEST')
def write_version_py(filename='algopy/version.py'):
cnt = """

0 comments on commit e4624e7

Please sign in to comment.