Skip to content

Commit

Permalink
Merge pull request #80 from jd-boyd/jdb_tweak
Browse files Browse the repository at this point in the history
Work on updating to pyproject.toml.
  • Loading branch information
jd-boyd authored Jan 13, 2024
2 parents 1886f47 + b85c6e5 commit a7d0ca6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,11 @@ test = ["pytest"]

[project.urls]
Homepage = "https://github.com/jd-boyd/python-lzo"
"Bug Tracker" = "https://github.com/jd-boyd/python-lzo/issues"

[tool.cibuildwheel]
archs = ["all"]
build-verbosity = 3
test-requires = "pytest"
test-command = "pytest {package}/tests"
test-skip = "*-win_arm64 *-macosx_arm64 *-macosx_universal2:arm64"
test-skip = "*-win_arm64"
10 changes: 8 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@ def run(self):

lzo_dir = os.environ.get("LZO_DIR", "lzo-2.10") # Relative path.

src_list = ["lzomodule.c"]
if sys.platform == "win32":
src_list += glob(os.path.join(lzo_dir, "src/*.c"))

setup(
name="python-lzo",
version="1.16",
Expand All @@ -45,9 +49,11 @@ def run(self):
ext_modules=[
Extension(
name="lzo",
sources=["lzomodule.c"] + glob(os.path.join(lzo_dir, "src/*.c")),
sources=src_list,
include_dirs=[os.path.join(lzo_dir, "include")],
extra_link_args=["-flat_namespace"] if sys.platform == "darwin" else [],
libraries=['lzo2'] if not sys.platform == "win32" else [],
library_dirs=[os.path.join(lzo_dir, "lib")],
#extra_link_args=["-flat_namespace"] if sys.platform == "darwin" else [],
)
],
long_description="""
Expand Down

0 comments on commit a7d0ca6

Please sign in to comment.