Skip to content
Browse files

changes to setup.py, add manifest to make sdist include data files wi…

…th bzr
  • Loading branch information...
1 parent 93cd5a3 commit e93b4958fedb45dae27074c47b5cb3408de640e1 @josef-pkt josef-pkt committed Aug 23, 2009
Showing with 11 additions and 5 deletions.
  1. +2 −0 MANIFEST.in
  2. +3 −3 scikits/statsmodels/setup.py
  3. 0 setup.cfg
  4. +6 −2 setup.py
View
2 MANIFEST.in
@@ -0,0 +1,2 @@
+include *.txt *.py scikits*.*
+global-exclude *~ *.swp *bzr* dist* build *.pyc
View
6 scikits/statsmodels/setup.py
@@ -8,9 +8,9 @@ def configuration(parent_package='',top_path=None):
# confid.add_subpackage('datasets')
config.add_data_dir('tests')
- config.add_extension('_hbspline',
- sources=['src/bspline_ext.c',
- 'src/bspline_impl.c'],
+## config.add_extension('_hbspline',
+## sources=['src/bspline_ext.c',
+## 'src/bspline_impl.c'],
)
return config
View
0 setup.cfg
No changes.
View
8 setup.py
@@ -52,7 +52,7 @@ def fbuild_fver_str():
VERSION = build_ver_str()
def configuration(parent_package='', top_path=None, package_name=DISTNAME):
- if os.path.exists('MANIFEST'): os.remove('MANIFEST')
+ #if os.path.exists('MANIFEST'): os.remove('MANIFEST')
from numpy.distutils.misc_util import Configuration
config = Configuration(None, parent_package, top_path,
@@ -66,7 +66,7 @@ def configuration(parent_package='', top_path=None, package_name=DISTNAME):
url = URL,
download_url = DOWNLOAD_URL,
long_description = LONG_DESCRIPTION)
-
+ config.add_subpackage('scikits')
config.add_data_files('scikits/__init__.py')
# config.add_subpackage('scikits/statsmodels/datasets')
# config.add_data_dir('scikits/statsmodels/datasets')
@@ -79,6 +79,9 @@ def configuration(parent_package='', top_path=None, package_name=DISTNAME):
for f in extradatafiles:
config.add_data_files(f)
+ #config.add_subpackage(DISTNAME)
+ #config.add_subpackage('scikits/statsmodels/examples')
+ #config.add_subpackage('scikits/statsmodels/tests')
config.set_options(
@@ -93,6 +96,7 @@ def configuration(parent_package='', top_path=None, package_name=DISTNAME):
if __name__ == "__main__":
setup(configuration = configuration,
+ #name = DISTNAME,
install_requires = 'numpy',
namespace_packages = ['scikits'],
packages = setuptools.find_packages(),

0 comments on commit e93b495

Please sign in to comment.
Something went wrong with that request. Please try again.