Skip to content

Commit

Permalink
Use the buildconfig/MANIFEST.in with setup.py change.
Browse files Browse the repository at this point in the history
  • Loading branch information
illume committed Aug 6, 2018
1 parent e03822e commit 257908b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 6 deletions.
14 changes: 11 additions & 3 deletions buildconfig/MANIFEST.in
@@ -1,9 +1,17 @@
include Setup.in Setup_Darwin.in Setup_Unix.in Setup_Win_Common.in *.py WHATSNEW readme.rst install.html readme.html LGPL version.py.in
include README.rst

recursive-include buildconfig *
recursive-include docs *
recursive-include lib *
recursive-include src *
recursive-include src_py *
recursive-include src_c *
recursive-include examples *
recursive-include test *
prune */CVS
prune */*/CVS
prune buildconfig/ci
prune buildconfig/ci/*
prune buildconfig/ci/*/*
prune buildconfig/manylinux-build
prune buildconfig/manylinux-build/*
prune buildconfig/manylinux-build/*/*
prune buildconfig/manylinux-build/*/*/*
13 changes: 10 additions & 3 deletions setup.py
Expand Up @@ -98,6 +98,7 @@ def compilation_help():
from distutils.core import setup, Extension, Command
from distutils.extension import read_setup_file
from distutils.command.install_data import install_data
from distutils.command.sdist import sdist


revision = ''
Expand Down Expand Up @@ -433,6 +434,15 @@ def run(self):
cmdclass['install_data'] = smart_install_data


class OurSdist(sdist):
def initialize_options(self):
sdist.initialize_options(self)
# we do not want MANIFEST.in to appear in the root cluttering up things.
self.template = os.path.join('buildconfig', 'MANIFEST.in')

cmdclass['sdist'] = OurSdist


if "bdist_msi" in sys.argv:
# if you are making an msi, we want it to overwrite files
# we also want to include the repository revision in the file name
Expand Down Expand Up @@ -653,6 +663,3 @@ def remove_old_files():
remove_old_files()
except:
pass



0 comments on commit 257908b

Please sign in to comment.