Skip to content

Commit

Permalink
setup.py: sdist tuning
Browse files Browse the repository at this point in the history
  • Loading branch information
Technologicat committed Apr 24, 2017
1 parent e13651f commit f55bc43
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,14 @@ def ext_math(extName):

# http://stackoverflow.com/questions/13628979/setuptools-how-to-make-package-contain-extra-data-folder-and-all-folders-inside
datadirs = ("doc", "test")
dataexts = (".py", ".pyx", ".pxd")
dataexts = (".py", ".pyx", ".pxd", ".c", ".sh", ".lyx", ".pdf")
datafiles = []
getext = lambda filename: os.path.splitext(filename)[1]
for datadir in datadirs:
datafiles.extend( [(root, [os.path.join(root, f) for f in files if getext(f) in dataexts])
for root, dirs, files in os.walk(datadir)] )

datafiles.append( ('.', ["README.md", "LICENSE.md", "TODO.md"]) )
datafiles.append( ('doc', ["doc/pydgq_user_manual.lyx", "doc/pydgq_user_manual.pdf"]) )
datafiles.append( ('.', ["README.md", "LICENSE.md", "TODO.md", "CHANGELOG.md"]) )

#########################################################
# Modules
Expand Down

0 comments on commit f55bc43

Please sign in to comment.