mirror of
https://github.com/markqvist/LXST.git
synced 2026-04-27 14:20:39 +00:00
Sync upstream
This commit is contained in:
parent
a470dca73e
commit
7794313202
24 changed files with 25 additions and 15 deletions
11
setup.py
11
setup.py
|
|
@ -4,12 +4,19 @@ from setuptools.command.build_ext import build_ext
|
|||
import os
|
||||
import platform
|
||||
|
||||
BUILD_EXTENSIONS = True
|
||||
if os.path.isfile("./skip_extensions"): BUILD_EXTENSIONS = False
|
||||
else: BUILD_EXTENSIONS = True
|
||||
|
||||
if BUILD_EXTENSIONS: print(f"Building LXST with native extensions...")
|
||||
else: print(f"Building LXST without native extensions...")
|
||||
|
||||
with open("README.md", "r") as fh: long_description = fh.read()
|
||||
exec(open("LXST/_version.py", "r").read())
|
||||
|
||||
if BUILD_EXTENSIONS: extensions = [ Extension("LXST.filterlib", sources=["LXST/Filters.c"], include_dirs=["LXST"], language="c"), ]
|
||||
c_sources = ["LXST/Filters.c"]
|
||||
if os.name == "nt": c_sources.append("LXST/Platforms/windows.c")
|
||||
|
||||
if BUILD_EXTENSIONS: extensions = [ Extension("LXST.filterlib", sources=c_sources, include_dirs=["LXST"], language="c"), ]
|
||||
else: extensions = []
|
||||
|
||||
packages = setuptools.find_packages(exclude=[])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue