pythonPackages.pysideShiboken: patch for Python 3.6
This commit is contained in:
parent
0dea2d20a7
commit
8081ab6e5c
@ -1,4 +1,4 @@
|
||||
{ lib, fetchurl, cmake, buildPythonPackage, libxml2, libxslt, pysideApiextractor, pysideGeneratorrunner, python, sphinx, qt4, isPy3k, isPy35 }:
|
||||
{ lib, fetchurl, cmake, buildPythonPackage, libxml2, libxslt, pysideApiextractor, pysideGeneratorrunner, python, sphinx, qt4, isPy3k, isPy35, isPy36 }:
|
||||
|
||||
# This derivation provides a Python module and should therefore be called via `python-packages.nix`.
|
||||
# Python 3.5 is not supported: https://github.com/PySide/Shiboken/issues/77
|
||||
@ -23,7 +23,7 @@ buildPythonPackage rec {
|
||||
substituteInPlace generator/CMakeLists.txt --replace \
|
||||
\"$\{GENERATORRUNNER_PLUGIN_DIR}\" lib/generatorrunner/
|
||||
'';
|
||||
patches = if isPy35 then [ ./shiboken_py35.patch ] else null;
|
||||
patches = if (isPy35 || isPy36) then [ ./shiboken_py35.patch ] else null;
|
||||
|
||||
cmakeFlags = if isPy3k then "-DUSE_PYTHON3=TRUE" else null;
|
||||
|
||||
|
@ -6,7 +6,7 @@ diff --git a/cmake/Modules/FindPython3Libs.cmake b/cmake/Modules/FindPython3Libs
|
||||
# CMAKE_FIND_FRAMEWORKS(Python)
|
||||
|
||||
-FOREACH(_CURRENT_VERSION 3.4 3.3 3.2 3.1 3.0)
|
||||
+FOREACH(_CURRENT_VERSION 3.5 3.4 3.3 3.2 3.1 3.0)
|
||||
+FOREACH(_CURRENT_VERSION 3.6 3.5 3.4 3.3 3.2 3.1 3.0)
|
||||
IF(_CURRENT_VERSION GREATER 3.1)
|
||||
SET(_32FLAGS "m" "u" "mu" "dm" "du" "dmu" "")
|
||||
ELSE()
|
||||
|
Loading…
Reference in New Issue
Block a user