aboutsummaryrefslogtreecommitdiffstats
path: root/sources/pyside2
diff options
context:
space:
mode:
authorAlexandru Croitor <alexandru.croitor@qt.io>2019-02-06 17:10:46 +0100
committerAlexandru Croitor <alexandru.croitor@qt.io>2019-02-06 17:25:38 +0000
commit2ff9a9ff8d5afbf9b8a347b15cf7d3043219d45c (patch)
treeb9ffbf646add640fe8cefb5fd60ee3d0c5caf2d0 /sources/pyside2
parente1ce71572446e68bcd78fd37a061b7f32d40bd00 (diff)
Make setup.py more robust when invoked in a weird way
setup.py sub-invocations use the command line arguments from the original setup.py invocation. This means that if setup.py was not invoked directly, but instead using the "python -c 'code'" approach, sub-invocations would break because argv[0] would be "-c" instead of "setup.py". This was previously seen when building PySide2 in homebrew, and allegedly when doing an sdist. Fix setup.py to pass the correct script file name, even when invoked in such a weird manner. Change-Id: Ic834d7398098095f74972661b2abc4f4e4c3c8d9 Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io> Reviewed-by: Alberto Sottile <alby128@gmail.com>
Diffstat (limited to 'sources/pyside2')
0 files changed, 0 insertions, 0 deletions