-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- scripts/base/build_pyside.sh - patch for PySide 5.15.8 to build against Python 3.10.x - patch for Pyside 5.15.8 to build against NumPy 1.23.x - packages/conan/recipes/python/conanfile.py sysconfigdata gets baked at compile time and surfaces the Conan build directory, which can confuse older CMake versions looking for INCLUDEPY. This replaces build prefix with /usr/local, which is not great since we don't know for sure that we'll be installing Python there, but it's better than the current situation. - packages/base3/Dockerfile You need to know the NUMPY_VERSION to build PySide - packages/vfx1/Dockerfile - packages/vfx2/Dockerfile tbb is now a Conan-only package Signed-off-by: Jean-Francois Panisset <[email protected]>
- Loading branch information
1 parent
4825eb6
commit f5c2356
Showing
5 changed files
with
102 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,7 @@ | |
from contextlib import contextmanager | ||
from conan.tools.files.symlinks import absolute_to_relative_symlinks | ||
import os | ||
import sysconfig | ||
|
||
|
||
class PythonConan(ConanFile): | ||
|
@@ -156,6 +157,19 @@ def _replaceShebang(script_prefix): | |
|
||
absolute_to_relative_symlinks(self, self.package_folder) | ||
|
||
# The grossest of hacks: the generated _sysconfigdata__PLATFORM.py embeds our build paths | ||
# This breaks tools that use sysconfig to find Python's INCLUDEDIR such as Qt. | ||
# This will break for multi-architecture builds, as well as when installing in a | ||
# different location than /usr/local | ||
tools.replace_in_file( | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
jfpanisset
Author
Contributor
|
||
os.path.join( | ||
self.package_folder, | ||
f"lib/python{self.major_minor}/_sysconfigdata__{sysconfig.get_config_var('MACHDEP')}_{sysconfig.get_config_var('MULTIARCH')}.py", | ||
), | ||
self.package_folder, | ||
"/usr/local", | ||
) | ||
|
||
def package_info(self): | ||
self.cpp_info.filenames["pkg_config"] = "python" | ||
self.user_info.python_interp = f"python{self.major_minor}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Would be great to move this into a conan install step, so that we don't need to know where it will be installed