Skip to content
This repository was archived by the owner on Jan 7, 2023. It is now read-only.

Commit 417077c

Browse files
committed
add numpy to setup's extras_require to make dep optional (useful for a requirements.txt file with root_numpy[with-numpy])
1 parent a7bf740 commit 417077c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@
164164
'root_numpy': ['testdata/*.root', 'config.json'],
165165
},
166166
ext_modules=ext_modules,
167+
extras_require={
168+
'with-numpy': ('numpy',),
169+
},
167170
zip_safe=False,
168171
classifiers=[
169172
'Intended Audience :: Science/Research',

0 commit comments

Comments
 (0)