File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1- from build import SRC_DIR , OTS_SRC_DIR
21from distutils .dir_util import mkpath , remove_tree
32from distutils import log
43import io
54import os
65import re
6+ from pathlib import Path
77from setuptools import setup , Extension , Command
88from setuptools .command import build_py
99from setuptools .command .egg_info import egg_info
1212
1313PY = sys .executable
1414
15+ # Define paths (previously imported from build.py)
16+ try :
17+ ROOT = Path (__file__ ).parent .resolve ()
18+ except NameError :
19+ # Fallback for when __file__ is not defined
20+ ROOT = Path .cwd ()
21+ SRC_DIR = ROOT / "src"
22+ OTS_SRC_DIR = SRC_DIR / "ots"
23+
1524BUILD_DIR = OTS_SRC_DIR / "build" / "meson"
1625BUILD_SUB_DIR = BUILD_DIR / "subprojects"
1726SRC_SUB_DIR = OTS_SRC_DIR / "subprojects"
You can’t perform that action at this time.
0 commit comments