Skip to content

Commit

Permalink
improved the setup.py to remove MANIFEST and improved MANIFEST.in
Browse files Browse the repository at this point in the history
  • Loading branch information
b45ch1 committed May 11, 2010
1 parent 7f60da7 commit e4624e7
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Expand Up @@ -27,8 +27,8 @@ version.py

SConstruct

dist
build

report


Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
@@ -1,2 +1,2 @@
recursive-include *
recursive-include *.py

4 changes: 4 additions & 0 deletions setup.py
Expand Up @@ -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 = """
Expand Down

0 comments on commit e4624e7

Please sign in to comment.