Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
weboob
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
175
Issues
175
List
Boards
Labels
Milestones
Merge Requests
48
Merge Requests
48
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
weboob
weboob
Commits
ed9f33f2
Commit
ed9f33f2
authored
Dec 24, 2018
by
Laurent Bachelier
🐧
Committed by
Romain Bignon
Dec 29, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
setup: Under Python 3, prefer Python 3 Qt
parent
c319ce1e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
setup.py
setup.py
+11
-1
No files found.
setup.py
View file @
ed9f33f2
...
...
@@ -30,6 +30,9 @@ from distutils.log import WARN
from
setuptools
import
find_packages
,
setup
PY3
=
sys
.
version_info
.
major
>=
3
class
BuildQt
(
Command
):
description
=
'build Qt applications'
user_options
=
[]
...
...
@@ -43,7 +46,14 @@ class BuildQt(Command):
def
run
(
self
):
self
.
announce
(
'Building Qt applications...'
,
WARN
)
make
=
self
.
find_executable
(
'make'
,
(
'gmake'
,
'make'
))
pyuic5
=
self
.
find_executable
(
'pyuic5'
,
(
'python2-pyuic5'
,
'pyuic5-python2.7'
,
'pyuic5'
))
if
PY3
:
pyuic5
=
self
.
find_executable
(
'pyuic5'
,
(
'python2-pyuic5'
,
'pyuic5-python2.7'
,
'pyuic5'
))
else
:
pyuic5
=
self
.
find_executable
(
'pyuic5'
,
(
'python3-pyuic5'
,
'pyuic5-python3.7'
,
'pyuic5-python3.6'
,
'pyuic5-python3.5'
,
'pyuic5'
))
if
not
pyuic5
or
not
make
:
print
(
'Install missing component(s) (see above) or disable Qt applications (with --no-qt).'
,
file
=
sys
.
stderr
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment