Skip to content

Commit 133c015

Browse files
committed
Update on "[build] Add editable mode unittest"
As titled. To do this we need to refactor the arguments being passed into `setup-linux.sh` `setup-macos.sh` and `unittest-linux.sh` `unittest-macos.sh`. [ghstack-poisoned]
2 parents 44c4546 + 1e47f69 commit 133c015

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ def __init__(self, src: str, modpath: str):
360360
"/" not in modpath
361361
), f"modpath must be a dotted python module path: saw '{modpath}'"
362362
# This is a real extension, so use the modpath as the name.
363-
super().__init__(src=src, dst=modpath, name=modpath)
363+
super().__init__(src=f"%CMAKE_CACHE_DIR%/{src}", dst=modpath, name=modpath)
364364

365365
def src_path(self, installer: "InstallerBuildExt") -> Path:
366366
"""Returns the path to the source file, resolving globs.

0 commit comments

Comments
 (0)