-
Notifications
You must be signed in to change notification settings - Fork 243
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enhance Cython integration: Add support for
c++
mode, use hostpytho…
…n3-provided Cython, allow pinning of specific Cython version in recipe (#957) * Add support to build cpp files from Cython, use Cython from hostpython3, and allow configuring Cython version to be used in recipe * PEP8 (noqa as ATM we do not care why it failed to Cythonize) * Add cymunk to broken recipes * Remove cpplink, now it uses the same liblink * Remove unused import * Avoid DRY violation
- Loading branch information
Showing
22 changed files
with
92 additions
and
210 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
BROKEN_RECIPES = set(["netifaces", "kivent_core"]) | ||
BROKEN_RECIPES = set(["netifaces", "kivent_core", "cymunk"]) | ||
|
||
# recipes that were already built will be skipped | ||
CORE_RECIPES = set(["kivy", "hostpython3", "python3"]) |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
diff -Naur setuptools.orig/_distutils/unixccompiler.py setuptools/_distutils/unixccompiler.py | ||
--- setuptools.orig/_distutils/unixccompiler.py 2024-02-11 18:42:58 | ||
+++ setuptools/_distutils/unixccompiler.py 2024-02-11 18:45:30 | ||
@@ -253,14 +253,20 @@ | ||
building_exe = target_desc == CCompiler.EXECUTABLE | ||
linker = (self.linker_exe if building_exe else self.linker_so)[:] | ||
|
||
- if target_lang == "c++" and self.compiler_cxx: | ||
- env, linker_ne = _split_env(linker) | ||
- aix, linker_na = _split_aix(linker_ne) | ||
- _, compiler_cxx_ne = _split_env(self.compiler_cxx) | ||
- _, linker_exe_ne = _split_env(self.linker_exe) | ||
+ # Mirko: We need our LDSHARED also for c++ things, | ||
+ # otherwise our hack to have static libs does not work | ||
+ # properly. | ||
+ # We will likely remove all these caveats once PEP 730 | ||
+ # is implemented (and we will conform to it). | ||
|
||
- params = _linker_params(linker_na, linker_exe_ne) | ||
- linker = env + aix + compiler_cxx_ne + params | ||
+ #if target_lang == "c++" and self.compiler_cxx: | ||
+ # env, linker_ne = _split_env(linker) | ||
+ # aix, linker_na = _split_aix(linker_ne) | ||
+ # _, compiler_cxx_ne = _split_env(self.compiler_cxx) | ||
+ # _, linker_exe_ne = _split_env(self.linker_exe) | ||
+ | ||
+ # params = _linker_params(linker_na, linker_exe_ne) | ||
+ # linker = env + aix + compiler_cxx_ne + params | ||
|
||
linker = compiler_fixup(linker, ld_args) | ||
|
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
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
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
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
Oops, something went wrong.