File tree Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Expand file tree Collapse file tree 2 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 1
1
[build-system ]
2
- requires = [" setuptools>=42 " , " setuptools-scm" ]
2
+ requires = [" setuptools>=74.1 " , " setuptools-scm" ]
3
3
build-backend = " setuptools.build_meta"
4
4
5
5
[project ]
@@ -34,7 +34,7 @@ homepage = "https://github.com/deeptools/py2bit"
34
34
# Override setuptools autodiscovery algorithm
35
35
# Only include package test data/source for wheel distribution
36
36
include-package-data = true
37
- packages = [" py2bit " , " py2bitTest" ]
37
+ packages = [" py2bitTest" ]
38
38
39
39
# Enable version inference from scm
40
40
[tool .setuptools_scm ]
Original file line number Diff line number Diff line change
1
+ from setuptools import setup , Extension
2
+ import glob
3
+ import sysconfig
4
+
5
+ srcs = [x for x in
6
+ glob .glob ("lib2bit/*.c" )]
7
+ srcs .append ("py2bit.c" )
8
+
9
+ additional_libs = [sysconfig .get_config_var ("LIBDIR" ), sysconfig .get_config_var ("LIBPL" )]
10
+
11
+ module1 = Extension ('py2bit' ,
12
+ sources = srcs ,
13
+ library_dirs = additional_libs ,
14
+ include_dirs = ['lib2bit' , sysconfig .get_config_var ("INCLUDEPY" )])
15
+
16
+ setup_args = dict (ext_modules = [module1 ])
17
+ setup (** setup_args )
You can’t perform that action at this time.
0 commit comments