Skip to content

Commit

Permalink
Fixed setup.py bdist_rpm command.
Browse files Browse the repository at this point in the history
  • Loading branch information
pearu committed Oct 27, 2005
1 parent a373e88 commit 64d85ae
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
14 changes: 6 additions & 8 deletions Lib/cluster/setup.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
#!/usr/bin/env python

import os
from scipy.distutils.core import Extension
from scipy.distutils.misc_util import get_path,Configuration,dot_join
join = os.path.join

def configuration(parent_package='',parent_path=None):
from scipy.distutils.system_info import get_info
package = 'cluster'
local_path = get_path(__name__,parent_path)
config = Configuration(package,parent_package)
def configuration(parent_package='',top_path=None):
from scipy.distutils.misc_util import Configuration
config = Configuration('cluster',parent_package,top_path)

config.add_data_dir('tests')

config.add_extension('_vq',
sources=[join('src', 'vq_wrap.cpp')])
Expand All @@ -24,5 +22,5 @@ def configuration(parent_package='',parent_path=None):
description = "Clustering Algorithms (Information Theory)",
url = "http://www.scipy.org",
license = "SciPy License (BSD Style)",
**configuration()
**configuration(top_path='').todict()
)
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#prune scipy_core
include setup.py
include *.txt
include Lib/*.py
# No more files here! They should be probably added
# to Extension depend argument list.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def setup_package():
config.package_dir['scipy'] = os.path.join(config.local_path,'Lib')

config.add_subpackage('Lib')

config.name = 'SciPy'
from scipy_version import scipy_version as version
config.dict_append(version=version)

Expand Down

0 comments on commit 64d85ae

Please sign in to comment.