1919generate the wheel with CPython extension metadata.
2020"""
2121
22- from setuptools import setup , find_packages , Extension
22+ import os
2323import pathlib
24+ import shlex
25+ import subprocess
2426import tempfile
27+
28+ from setuptools import Extension , find_packages , setup
2529from setuptools .command .build import build as _build
2630from setuptools .command .install import install as _install
2731
28- import subprocess
29- import os
30- import shlex
31-
3232# Get the long description from the README file
3333SOURCE_DIR = pathlib .Path (__file__ ).parent .resolve ()
3434LONG_DESCRIPTION = (SOURCE_DIR / "README.md" ).read_text (encoding = "utf-8" )
@@ -50,7 +50,8 @@ def run(self):
5050 configure_command = shlex .split (
5151 "cmake -GNinja -Dccache=ON "
5252 "-Dgminimal=ON -Dasimage=ON -Dopengl=OFF " # Graphics
53- "-Druntime_cxxmodules=ON -Drpath=ON -Dfail-on-missing=ON -DROOT_WHEEL_BUILD=ON " # Generic build configuration
53+ "-Druntime_cxxmodules=ON -Drpath=ON -Dfail-on-missing=ON " # Generic build configuration
54+ "-Dtmva-pymva=OFF -Dtpython=OFF " # Turn off explicitly components that link against libPython
5455 "-Dbuiltin_nlohmannjson=ON -Dbuiltin_tbb=ON -Dbuiltin_xrootd=ON " # builtins
5556 "-Dbuiltin_lz4=ON -Dbuiltin_lzma=ON -Dbuiltin_zstd=ON -Dbuiltin_xxhash=ON " # builtins
5657 "-Dpyroot=ON -Ddataframe=ON -Dxrootd=ON -Dssl=ON -Dimt=ON "
@@ -87,8 +88,6 @@ def run(self):
8788
8889 install_path = self ._get_install_path ()
8990
90- lib_dir = os .path .join (INSTALL_DIR , "lib" )
91-
9291 # Copy ROOT installation tree to the ROOT package directory in the pip installation path
9392 self .copy_tree (os .path .join (INSTALL_DIR , ROOT_BUILD_INTERNAL_DIRNAME ), install_path )
9493
@@ -97,7 +96,6 @@ def run(self):
9796 # After the copy of the "mock" package structure from the ROOT installations, these are the
9897 # leftover directories that still need to be copied
9998 self .copy_tree (os .path .join (INSTALL_DIR , "cmake" ), os .path .join (root_package_dir , "cmake" ))
100- self .copy_tree (os .path .join (INSTALL_DIR , "config" ), os .path .join (root_package_dir , "config" ))
10199 self .copy_tree (os .path .join (INSTALL_DIR , "etc" ), os .path .join (root_package_dir , "etc" ))
102100 self .copy_tree (os .path .join (INSTALL_DIR , "fonts" ), os .path .join (root_package_dir , "fonts" ))
103101 self .copy_tree (os .path .join (INSTALL_DIR , "icons" ), os .path .join (root_package_dir , "icons" ))
0 commit comments