GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — flow-scikit/python/setup.py at main · godofecht/flow-scikit Expand file tree/ Copy pathsetup.pyMore file actions 43 lines (34 loc) · 1.08 KB / Copy pathsetup.pyFile metadata and controls43 lines (34 loc) · 1.08 KB 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 from __future__ import annotations import os import sys from pathlib import Path from setuptools import Extension, setup HERE = Path(__file__).resolve().parent GENERATED = HERE / "generated" / "flow_scikit_native.c" if not GENERATED.exists(): raise RuntimeError( "generated Flow C source is missing; run " "`python tools/build_python_package.py --skip-wheel` from the repository root first" ) libraries: list[str] = [] extra_link_args: list[str] = [] override = os.environ.get("FLOW_SCIKIT_BLAS_LIB") if override: libraries.extend(name.strip() for name in override.split(",") if name.strip()) elif sys.platform == "darwin": extra_link_args.extend(["-framework", "Accelerate"]) elif os.name == "nt": libraries.append("openblas") else: libraries.extend(["openblas", "m"]) extension = Extension( "flow_scikit._flow_scikit_native", sources=[ "src/flow_scikit/_native.c", "generated/flow_scikit_native.c", ], libraries=libraries, extra_compile_args=["-O3"], extra_link_args=extra_link_args, ) setup(ext_modules=[extension]) |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |