Skip to content

Commit

Permalink
Revert "Remove pyx dependencies from setup (#17478)" (#17565)
Browse files Browse the repository at this point in the history
This reverts commit e6aed2e.
  • Loading branch information
jreback authored Sep 17, 2017
1 parent 553a829 commit cbb090f
Showing 1 changed file with 22 additions and 9 deletions.
31 changes: 22 additions & 9 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,14 @@ class CheckSDist(sdist_class):
def initialize_options(self):
sdist_class.initialize_options(self)

'''
self._pyxfiles = []
for root, dirs, files in os.walk('pandas'):
for f in files:
if f.endswith('.pyx'):
self._pyxfiles.append(pjoin(root, f))
'''

def run(self):
if 'cython' in cmdclass:
self.run_command('cython')
Expand Down Expand Up @@ -471,10 +479,11 @@ def pxd(name):
'_libs.lib': {'pyxfile': '_libs/lib',
'depends': lib_depends + tseries_depends},
'_libs.hashtable': {'pyxfile': '_libs/hashtable',
'pxdfiles': ['_libs/hashtable'],
'depends': (['pandas/_libs/src/klib/khash_python.h']
+ _pxi_dep['hashtable'])},
'_libs.tslib': {'pyxfile': '_libs/tslib',
'pxdfiles': ['_libs/src/util'],
'pxdfiles': ['_libs/src/util', '_libs/lib'],
'depends': tseries_depends,
'sources': ['pandas/_libs/src/datetime/np_datetime.c',
'pandas/_libs/src/datetime/np_datetime_strings.c']},
Expand All @@ -490,20 +499,21 @@ def pxd(name):
'_libs.index': {'pyxfile': '_libs/index',
'sources': ['pandas/_libs/src/datetime/np_datetime.c',
'pandas/_libs/src/datetime/np_datetime_strings.c'],
'pxdfiles': ['_libs/src/util'],
'pxdfiles': ['_libs/src/util', '_libs/hashtable'],
'depends': _pxi_dep['index']},
'_libs.algos': {'pyxfile': '_libs/algos',
'pxdfiles': ['_libs/src/util'],
'pxdfiles': ['_libs/src/util', '_libs/algos', '_libs/hashtable'],
'depends': _pxi_dep['algos']},
'_libs.groupby': {'pyxfile': '_libs/groupby',
'pxdfiles': ['_libs/src/util'],
'depends': _pxi_dep['groupby']},
'pxdfiles': ['_libs/src/util', '_libs/algos'],
'depends': _pxi_dep['groupby']},
'_libs.join': {'pyxfile': '_libs/join',
'pxdfiles': ['_libs/src/util'],
'pxdfiles': ['_libs/src/util', '_libs/hashtable'],
'depends': _pxi_dep['join']},
'_libs.reshape': {'pyxfile': '_libs/reshape',
'depends': _pxi_dep['reshape']},
'_libs.interval': {'pyxfile': '_libs/interval',
'pxdfiles': ['_libs/hashtable'],
'depends': _pxi_dep['interval']},
'_libs.window': {'pyxfile': '_libs/window',
'pxdfiles': ['_libs/src/skiplist', '_libs/src/util'],
Expand All @@ -516,9 +526,12 @@ def pxd(name):
'sources': ['pandas/_libs/src/parser/tokenizer.c',
'pandas/_libs/src/parser/io.c']},
'_libs.sparse': {'pyxfile': '_libs/sparse',
'depends': _pxi_dep['sparse']},
'_libs.testing': {'pyxfile': '_libs/testing'},
'_libs.hashing': {'pyxfile': '_libs/hashing'},
'depends': (['pandas/_libs/sparse.pyx'] +
_pxi_dep['sparse'])},
'_libs.testing': {'pyxfile': '_libs/testing',
'depends': ['pandas/_libs/testing.pyx']},
'_libs.hashing': {'pyxfile': '_libs/hashing',
'depends': ['pandas/_libs/hashing.pyx']},
'io.sas._sas': {'pyxfile': 'io/sas/sas'},
}

Expand Down

0 comments on commit cbb090f

Please sign in to comment.