Skip to content

Commit e6aed2e

Browse files
jbrockmendeljreback
authored andcommitted
Remove pyx dependencies from setup (#17478)
1 parent c3ad501 commit e6aed2e

File tree

1 file changed

+9
-22
lines changed

1 file changed

+9
-22
lines changed

setup.py

+9-22
Original file line numberDiff line numberDiff line change
@@ -347,14 +347,6 @@ class CheckSDist(sdist_class):
347347
def initialize_options(self):
348348
sdist_class.initialize_options(self)
349349

350-
'''
351-
self._pyxfiles = []
352-
for root, dirs, files in os.walk('pandas'):
353-
for f in files:
354-
if f.endswith('.pyx'):
355-
self._pyxfiles.append(pjoin(root, f))
356-
'''
357-
358350
def run(self):
359351
if 'cython' in cmdclass:
360352
self.run_command('cython')
@@ -479,11 +471,10 @@ def pxd(name):
479471
'_libs.lib': {'pyxfile': '_libs/lib',
480472
'depends': lib_depends + tseries_depends},
481473
'_libs.hashtable': {'pyxfile': '_libs/hashtable',
482-
'pxdfiles': ['_libs/hashtable'],
483474
'depends': (['pandas/_libs/src/klib/khash_python.h']
484475
+ _pxi_dep['hashtable'])},
485476
'_libs.tslib': {'pyxfile': '_libs/tslib',
486-
'pxdfiles': ['_libs/src/util', '_libs/lib'],
477+
'pxdfiles': ['_libs/src/util'],
487478
'depends': tseries_depends,
488479
'sources': ['pandas/_libs/src/datetime/np_datetime.c',
489480
'pandas/_libs/src/datetime/np_datetime_strings.c',
@@ -498,21 +489,20 @@ def pxd(name):
498489
'_libs.index': {'pyxfile': '_libs/index',
499490
'sources': ['pandas/_libs/src/datetime/np_datetime.c',
500491
'pandas/_libs/src/datetime/np_datetime_strings.c'],
501-
'pxdfiles': ['_libs/src/util', '_libs/hashtable'],
492+
'pxdfiles': ['_libs/src/util'],
502493
'depends': _pxi_dep['index']},
503494
'_libs.algos': {'pyxfile': '_libs/algos',
504-
'pxdfiles': ['_libs/src/util', '_libs/algos', '_libs/hashtable'],
495+
'pxdfiles': ['_libs/src/util'],
505496
'depends': _pxi_dep['algos']},
506497
'_libs.groupby': {'pyxfile': '_libs/groupby',
507-
'pxdfiles': ['_libs/src/util', '_libs/algos'],
508-
'depends': _pxi_dep['groupby']},
498+
'pxdfiles': ['_libs/src/util'],
499+
'depends': _pxi_dep['groupby']},
509500
'_libs.join': {'pyxfile': '_libs/join',
510-
'pxdfiles': ['_libs/src/util', '_libs/hashtable'],
501+
'pxdfiles': ['_libs/src/util'],
511502
'depends': _pxi_dep['join']},
512503
'_libs.reshape': {'pyxfile': '_libs/reshape',
513504
'depends': _pxi_dep['reshape']},
514505
'_libs.interval': {'pyxfile': '_libs/interval',
515-
'pxdfiles': ['_libs/hashtable'],
516506
'depends': _pxi_dep['interval']},
517507
'_libs.window': {'pyxfile': '_libs/window',
518508
'pxdfiles': ['_libs/src/skiplist', '_libs/src/util'],
@@ -525,12 +515,9 @@ def pxd(name):
525515
'sources': ['pandas/_libs/src/parser/tokenizer.c',
526516
'pandas/_libs/src/parser/io.c']},
527517
'_libs.sparse': {'pyxfile': '_libs/sparse',
528-
'depends': (['pandas/_libs/sparse.pyx'] +
529-
_pxi_dep['sparse'])},
530-
'_libs.testing': {'pyxfile': '_libs/testing',
531-
'depends': ['pandas/_libs/testing.pyx']},
532-
'_libs.hashing': {'pyxfile': '_libs/hashing',
533-
'depends': ['pandas/_libs/hashing.pyx']},
518+
'depends': _pxi_dep['sparse']},
519+
'_libs.testing': {'pyxfile': '_libs/testing'},
520+
'_libs.hashing': {'pyxfile': '_libs/hashing'},
534521
'io.sas._sas': {'pyxfile': 'io/sas/sas'},
535522
}
536523

0 commit comments

Comments
 (0)