Skip to content

Commit

Permalink
ENH: specify dependency list for tseries Cython module, GH pandas-dev…
Browse files Browse the repository at this point in the history
  • Loading branch information
wesm committed Oct 22, 2011
1 parent 32d65dd commit de98e24
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 6 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ clean:
-rm -rf build dist

tseries: pandas/src/tseries.pyx
touch pandas/src/tseries.pyx
python setup.py build_ext --inplace

sparse: pandas/src/sparse.pyx
Expand Down
1 change: 1 addition & 0 deletions RELEASE.rst
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,7 @@ feedback on the library.
the source directory (GH #250)
- Significantly speed up DataFrame `__repr__` and `count` on large mixed-type
DataFrame objects
- Better handling of pyx file dependencies in Cython module build (GH #271)

**Bug fixes**

Expand Down
18 changes: 13 additions & 5 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,22 +274,30 @@ def run(self):
cmdclass['build_ext'] = build_ext
cmdclass['sdist'] = CheckSDist

tseries_depends = ['reindex', 'io', 'common', 'groupby'
'skiplist', 'isnull', 'moments', 'operators']

tseries_depends = ['reindex', 'groupby', 'skiplist', 'moments',
'generated', 'parsing']
def srcpath(name=None, suffix='.pyx', subdir='src'):
return pjoin('pandas', subdir, name+suffix)

if suffix == '.pyx':
tseries_depends = [srcpath(f, suffix='.pyx')
for f in tseries_depends]
else:
tseries_depends = None

print tseries_depends

tseries_ext = Extension('pandas._tseries',
depends=tseries_depends,
sources=[srcpath('tseries', suffix=suffix)],
# depends=[srcpath(f, suffix='.pyx')
# for f in tseries_depends],
include_dirs=[np.get_include()])

sparse_ext = Extension('pandas._sparse',
sources=[srcpath('sparse', suffix=suffix)],
include_dirs=[np.get_include()])
extensions = [tseries_ext,
sparse_ext]

# if _have_setuptools:
# setuptools_args["test_suite"] = "nose.collector"

Expand Down

0 comments on commit de98e24

Please sign in to comment.