mirror of
https://git.freebsd.org/ports.git
synced 2025-07-03 10:29:15 -04:00
Supports Python 3.11. It would include oniguruma and jq libs in its sources, but let's continue using our separate ports for now. Add support for forcing self-tests under poudriere, masked by a variable that I can set from /usr/local/etc/poudriere.d/make.conf.
24 lines
722 B
Python
24 lines
722 B
Python
--- setup.py.orig 2022-09-19 15:51:09 UTC
|
|
+++ setup.py
|
|
@@ -36,8 +36,6 @@ class jq_build_ext(build_ext):
|
|
def run(self):
|
|
if not os.path.exists(_dep_build_path(".")):
|
|
os.makedirs(_dep_build_path("."))
|
|
- self._build_oniguruma()
|
|
- self._build_libjq()
|
|
build_ext.run(self)
|
|
|
|
def _build_oniguruma(self):
|
|
@@ -87,11 +85,7 @@ jq_extension = Extension(
|
|
"jq",
|
|
sources=["jq.c"],
|
|
include_dirs=[os.path.join(jq_lib_dir, "src")],
|
|
- extra_link_args=["-lm"],
|
|
- extra_objects=[
|
|
- os.path.join(jq_lib_dir, ".libs/libjq.a"),
|
|
- os.path.join(oniguruma_lib_install_dir, "lib/libonig.a"),
|
|
- ],
|
|
+ extra_link_args=["-lm", "-ljq", "-lonig"],
|
|
)
|
|
|
|
setup(
|