[Python-modules-commits] [qscintilla2] 02/09: configure.py-objdir-support.diff
Scott Kitterman
kitterman at moszumanska.debian.org
Sat Dec 16 06:50:25 UTC 2017
This is an automated email from the git hooks/post-receive script.
kitterman pushed a commit to branch patch-queue/debian/master
in repository qscintilla2.
commit e4141cc7c1e42ba328a7b7a7b06260142612d0d2
Author: SVN-Git Migration <python-modules-team at lists.alioth.debian.org>
Date: Thu Oct 8 13:39:16 2015 -0700
configure.py-objdir-support.diff
02_configure.dpatch by Torsten Marek <shlomme at debian.org>
Updated for Qscintilla 2.8.2 configure.py changes by Scott Kitterman
<scott at kitterman.com>
patch the configure script for the Python bindings to support object dir
builds
Patch-Name: configure.py-objdir-support.diff
---
Python/configure.py | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/Python/configure.py b/Python/configure.py
index 578b4a1..5976b88 100644
--- a/Python/configure.py
+++ b/Python/configure.py
@@ -37,6 +37,7 @@ import sys
# You shouldn't need to modify anything above this line.
###############################################################################
+src_dir = os.path.dirname(os.path.abspath(__file__))
# This must be kept in sync with Python/configure-old.py, qscintilla.pro,
# example-Qt4Qt5/application.pro and designer-Qt4Qt5/designer.pro.
@@ -218,6 +219,8 @@ class ModuleConfiguration(object):
"The QScintilla version number could not be determined by "
"reading %s." % sciglobal)
+ return # Debian: do not check for the installed version, we're good this way.
+
lib_dir = target_configuration.qsci_lib_dir
if lib_dir is None:
lib_dir = target_configuration.qt_lib_dir
@@ -276,7 +279,12 @@ class ModuleConfiguration(object):
the target configuration.
"""
- return 'sip/qscimod5.sip' if target_configuration.pyqt_package == 'PyQt5' else 'sip/qscimod4.sip'
+ if target_configuration.pyqt_package == 'PyQt5':
+ return os.path.join(src_dir, 'sip/qscimod5.sip')
+ else:
+ return os.path.join(src_dir, 'sip/qscimod4.sip')
+
+ #return 'sip/qscimod5.sip' if target_configuration.pyqt_package == 'PyQt5' else 'sip/qscimod4.sip'
@staticmethod
def get_sip_installs(target_configuration):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/qscintilla2.git
More information about the Python-modules-commits
mailing list