DINKIN / winpython

Automatically exported from code.google.com/p/winpython
0 stars 0 forks source link

sipconfig.py has a dumb configuration #65

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I have winpython 'installed' under C:\programs\WinPython2.7.3_32 and the 
content of sipconfig.py, at 
C:\programs\WinPython2.7.3_32\python-2.7.3\Lib\site-packages

Shows. This is bad becode programs like QGis rely on this to detect sip ... and 
they fail.

_pkg_config = {
    'arch':               '',
    'default_bin_dir':    'X:\\Python27',
    'default_mod_dir':    'X:\\Python27\\Lib\\site-packages',
    'default_sip_dir':    'X:\\Python27\\sip',
    'deployment_target':  '',
    'platform':           'win32-msvc2008',
    'py_conf_inc_dir':    'X:\\Python27\\include',
    'py_inc_dir':         'X:\\Python27\\include',
    'py_lib_dir':         'X:\\Python27\\libs',
    'py_version':         0x020703,
    'sip_bin':            'X:\\Python27\\sip',
    'sip_config_args':    '-p win32-msvc2008',
    'sip_inc_dir':        'X:\\Python27\\include',
    'sip_mod_dir':        'X:\\Python27\\Lib\\site-packages',
    'sip_version':        0x040e02,
    'sip_version_str':    '4.14.2',
    'universal':          ''
}

Original issue reported on code.google.com by JMFL...@gmail.com on 27 Jun 2013 at 2:34

GoogleCodeExporter commented 9 years ago
Same applies to pyqtconfig.py

Original comment by JMFL...@gmail.com on 27 Jun 2013 at 11:43

GoogleCodeExporter commented 9 years ago
I'm almost certain that the official PyQt4 Windows installer does not change 
those values too. That's because, if you need them, you will soon be limited 
with a binary distribution of PyQt4 (which does not include all Qt) and you 
will need to build it yourself (hence generating the right configuration files).

This is even clearer when you take a look at the pyqtconfig.py contents:
_pkg_config = {
    'pyqt_bin_dir':      'X:\\Python27-x64',
    'pyqt_config_args':  '-w --confirm-license',
    'pyqt_mod_dir':      'X:\\Python27-x64\\Lib\\site-packages\\PyQt4',
    'pyqt_modules':      'QtCore QtGui QtHelp QtMultimedia QtNetwork QtDeclarative QtOpenGL QtScript QtScriptTools QtSql QtSvg QtTest QtWebKit QtXml QtXmlPatterns phonon QtDesigner QAxContainer',
    'pyqt_sip_dir':      'X:\\Python27-x64\\sip\\PyQt4',
    'pyqt_sip_flags':    '-x VendorID -t WS_WIN -x PyQt_OpenSSL -x PyQt_NoPrintRangeBug -t Qt_4_8_4 -x Py_v3 -g',
    'pyqt_version':      0x040906,
    'pyqt_version_str':  '4.9.6',
    'qt_data_dir':       'X:\\Qt484-vc9-x64',
    'qt_dir':            'X:\\Qt484-vc9-x64',
    'qt_edition':        'free',
    'qt_framework':      0,
    'qt_inc_dir':        'X:\\Qt484-vc9-x64\\include',
    'qt_lib_dir':        'X:\\Qt484-vc9-x64\\lib',
    'qt_threaded':       1,
    'qt_version':        0x040804,
    'qt_winconfig':      'shared'
}
As you see above, the location of the Qt directory has to be provided... but 
the Qt distribution is not included in WinPython (as in all other 
distributions, as in official PyQt Windows installer: because it's too large).

So, as a conclusion, if you really need those configuration files to be 
accurate, this can only means that you need to download Qt and PyQt source 
packages and build your own Qt and PyQt binaries

Original comment by pierre.raybaut on 15 Aug 2013 at 7:43