summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2014-02-07 03:34:07 +0100
committerSlávek Banko <slavek.banko@axis.cz>2014-02-07 03:34:07 +0100
commit4049988a92da41386f87f491edd86bee95743209 (patch)
tree4b0181115d1097f5ed0fabe471a8fd7f6da09691
parentbef776509e53d0582ae91bb3edf8d19a1593a9a9 (diff)
downloadpytqt-4049988a92da41386f87f491edd86bee95743209.tar.gz
pytqt-4049988a92da41386f87f491edd86bee95743209.zip
Install as module by default
-rw-r--r--configure.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/configure.py b/configure.py
index 8f9a077..47b05c9 100644
--- a/configure.py
+++ b/configure.py
@@ -73,7 +73,7 @@ sipcfg = sipconfig.Configuration()
opt_qtlib = None
opt_qconfigdir = None
opt_pyqtbindir = sipcfg.default_bin_dir
-opt_pyqtmoddir = sipcfg.default_mod_dir
+opt_pyqtmoddir = os.path.join(sipcfg.default_mod_dir, "python_tqt")
opt_pyqtsipdir = sipcfg.default_sip_dir
opt_qtpetag = None
opt_qsciincdir = None
@@ -184,7 +184,7 @@ class ConfigureBase:
"""Return a list of files to install in the module directory other than
the modules themselves.
"""
- return ["pyqtconfig.py"]
+ return ["__init__.py", "pyqtconfig.py"]
def sip_dir(self):
"""Return the configuration's .sip files directory.
@@ -1449,6 +1449,8 @@ def main(argv):
# Create the additional Makefiles.
sipconfig.inform("Creating top level Makefile...")
+ open('__init__.py', 'a').close()
+
sipconfig.ParentMakefile(
configuration=sipcfg,
subdirs=pyqt_modules + pyqt.tools(),