Skip to content

Commit f61398b

Browse files
committed
revert to just uninstall_te_wheel_packages change
1 parent e821d5a commit f61398b

File tree

3 files changed

+1
-12
lines changed

3 files changed

+1
-12
lines changed

build_tools/build_ext.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,8 @@
2525
get_frameworks,
2626
cuda_path,
2727
get_max_jobs_for_parallel_build,
28-
install_and_import,
2928
)
3029

31-
install_and_import("pybind11[global]")
32-
3330

3431
class CMakeExtension(setuptools.Extension):
3532
"""CMake extension module"""

build_tools/utils.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -297,17 +297,10 @@ def copy_common_headers(
297297
shutil.copy(path, new_path)
298298

299299

300-
def pip_or_uv() -> List[str]:
301-
if find_spec("pip") is not None:
302-
return [sys.executable, "-m", "pip"]
303-
else:
304-
return ["/usr/bin/env", "uv", "pip"]
305-
306-
307300
def install_and_import(package):
308301
"""Install a package via pip (if not already installed) and import into globals."""
309302
main_package = package.split("[")[0]
310-
subprocess.check_call([*pip_or_uv(), "install", package])
303+
subprocess.check_call([sys.executable, "-m", "pip", "install", package])
311304
globals()[main_package] = importlib.import_module(main_package)
312305

313306

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838
elif "paddle" in frameworks:
3939
from paddle.utils.cpp_extension import BuildExtension
4040
elif "jax" in frameworks:
41-
install_and_import("jax[cuda12_local]")
4241
install_and_import("pybind11[global]")
4342
from pybind11.setup_helpers import build_ext as BuildExtension
4443

0 commit comments

Comments
 (0)