Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to change "target.path" for qmake subdirs template project?



  • PyQt5.pro contains:
    `TEMPLATE = subdirs
    CONFIG += ordered nostrip

    SUBDIRS = QtCore QtGui QtMultimedia QtMultimediaWidgets QtNetwork QtOpenGL QtPrintSupport QtQml QtQuick QtSql QtSvg QtTest QtWidgets QtXml QtXmlPatterns QtDBus _QOpenGLFunctions_2_0 _QOpenGLFunctions_2_1 _QOpenGLFunctions_4_1_Core QtSensors QtSerialPort QtX11Extras QtBluetooth QtPositioning QtQuickWidgets QtWebSockets Enginio QtWebChannel QtLocation QtNfc pylupdate pyrcc Qt qmlscene`

    Is there an easy way to change the target.path so that it propagates to all the subdirectories eg. change in top-level target.path in PyQt5.pro file changes the target.path in QtCore.pro in subfolder QtCore, etc.?

    Thanking you in advance for any help.



  • @sildeag - while I would still like to know if there is a solution, I noticed that python3 configure.py --destdir <DIR> provided an alternative way to change the target.path in all subdirs and if this wasn't specific enough, a configuration file with pyqt_module_dir would.


Log in to reply