File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -32,10 +32,11 @@ test = ["pytest"]
32
32
33
33
[project .urls ]
34
34
Homepage = " https://github.com/jd-boyd/python-lzo"
35
+ "Bug Tracker" = " https://github.com/jd-boyd/python-lzo/issues"
35
36
36
37
[tool .cibuildwheel ]
37
38
archs = [" all" ]
38
39
build-verbosity = 3
39
40
test-requires = " pytest"
40
41
test-command = " pytest {package}/tests"
41
- test-skip = " *-win_arm64 *-macosx_arm64 *-macosx_universal2:arm64 "
42
+ test-skip = " *-win_arm64"
Original file line number Diff line number Diff line change @@ -28,6 +28,10 @@ def run(self):
28
28
29
29
lzo_dir = os .environ .get ("LZO_DIR" , "lzo-2.10" ) # Relative path.
30
30
31
+ src_list = ["lzomodule.c" ]
32
+ if sys .platform == "win32" :
33
+ src_list += glob (os .path .join (lzo_dir , "src/*.c" ))
34
+
31
35
setup (
32
36
name = "python-lzo" ,
33
37
version = "1.16" ,
@@ -45,9 +49,11 @@ def run(self):
45
49
ext_modules = [
46
50
Extension (
47
51
name = "lzo" ,
48
- sources = [ "lzomodule.c" ] + glob ( os . path . join ( lzo_dir , "src/*.c" )) ,
52
+ sources = src_list ,
49
53
include_dirs = [os .path .join (lzo_dir , "include" )],
50
- extra_link_args = ["-flat_namespace" ] if sys .platform == "darwin" else [],
54
+ libraries = ['lzo2' ] if not sys .platform == "win32" else [],
55
+ library_dirs = [os .path .join (lzo_dir , "lib" )],
56
+ #extra_link_args=["-flat_namespace"] if sys.platform == "darwin" else [],
51
57
)
52
58
],
53
59
long_description = """
You can’t perform that action at this time.
0 commit comments