install pycairo before PyGObject

Fixes: #1267
This commit is contained in:
Kyle Robbertze 2021-07-15 10:27:23 +02:00
parent 5badca488d
commit f5ca20ed3e
2 changed files with 5 additions and 2 deletions

View File

@ -970,6 +970,9 @@ verbose "Detected Python version: $python_version"
verbose "\n * Installing necessary python services..."
loudCmd "$python_bin -mpip install setuptools --upgrade"
# Required here because PyGObject requires it, but it is installed after PyGObject
# when pip parses the setup.py file in airtime_analyzer
loudCmd "$python_bin -mpip install pycairo==1.19.1"
verbose "...Done"
verbose "\n * Creating /run/airtime..."

View File

@ -24,8 +24,8 @@ setup(
"file-magic",
"requests>=2.7.0",
"rgain3==1.1.0",
# 3.36.1 is the latest version that does not fail to find py3cairo package
"PyGObject>=3.34.0,<=3.36.1",
"PyGObject>=3.34.0",
# If this version is changed, it needs changing in the install script too
"pycairo==1.19.1",
],
zip_safe=False,