[Numpy-svn] r6185 - trunk

numpy-svn@scip... numpy-svn@scip...
Sun Dec 21 10:19:22 CST 2008


Author: cdavid
Date: 2008-12-21 10:19:14 -0600 (Sun, 21 Dec 2008)
New Revision: 6185

Modified:
   trunk/setup.py
Log:
Add doc sources so that sdist tarball contains them.

Modified: trunk/setup.py
===================================================================
--- trunk/setup.py	2008-12-21 07:46:28 UTC (rev 6184)
+++ trunk/setup.py	2008-12-21 16:19:14 UTC (rev 6185)
@@ -44,6 +44,14 @@
 # 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
 
@@ -61,6 +69,8 @@
 
     config.get_version('numpy/version.py') # sets config.version
 
+    setup_doc_files(config)
+
     return config
 
 def setup_package():



More information about the Numpy-svn mailing list