Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Do not add doc sources through add_data_dir: it will put the docs alo…

…ngside numpy, as a separate package, which is not what we want. Use the manifest instead, since that's the only way I know of to include something in sdist-generated tarballs.
  • Loading branch information...
commit ef8690c161d3314358d22443cb5ffe3fa7f7f5af 1 parent 69bf862
@cournape cournape authored
Showing with 6 additions and 10 deletions.
  1. +6 −0 MANIFEST.in
  2. +0 −10 setup.py
View
6 MANIFEST.in
@@ -11,3 +11,9 @@ include setupegg.py
recursive-include numpy/core/code_generators *.py
include numpy/core/include/numpy/numpyconfig.h.in
recursive-include numpy SConstruct
+# Add documentation: we don't use add_data_dir since we do not want to include
+# this at installation, only for sdist-generated tarballs
+include doc/Makefile doc/postprocess.py
+recursive-include doc/release *
+recursive-include doc/source *
+recursive-include doc/sphinxext *
View
10 setup.py
@@ -44,14 +44,6 @@
# a lot more robust than what was previously being used.
__builtin__.__NUMPY_SETUP__ = True
-def setup_doc_files(configuration):
- # Add doc sources
- configuration.add_data_dir("doc/release")
- configuration.add_data_dir("doc/source")
- configuration.add_data_dir("doc/sphinxext")
- configuration.add_data_files(("doc/Makefile"), ("doc/postprocess.py"))
-
-
def configuration(parent_package='',top_path=None):
from numpy.distutils.misc_util import Configuration
@@ -69,8 +61,6 @@ def configuration(parent_package='',top_path=None):
config.get_version('numpy/version.py') # sets config.version
- setup_doc_files(config)
-
return config
def setup_package():
Please sign in to comment.
Something went wrong with that request. Please try again.