Skip to content

Commit

Permalink
Fix matplotlib ver (#156)
Browse files Browse the repository at this point in the history
* Fixed matplotlib version

* Change matplotlib version based on arch

* Don't install matplotlib on ppc

Pip package of matplotlib is broken on ppc.

* Update setup.py
  • Loading branch information
Nishidha authored Dec 21, 2022
1 parent 056462e commit cb83621
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
# limitations under the License.
# *****************************************************************
"""
import platform
from setuptools import find_packages, setup
import open_ce

Expand All @@ -31,9 +32,14 @@ def get_readme():
"jinja2",
"networkx",
"junit-xml",
"matplotlib==3.5.0",
]

# We are installing matplotlib only on x86. It is needed for one of the pytests (get_graph_test.py)
# which is run in the PR check and it runs on x86. On ppc, matplotlib's pip package isn't working.

if platform.machine() == 'x86_64':
REQUIRED_PACKAGES.append("matplotlib==3.5.0")

setup(
name="open-ce-builder",
version=open_ce.__version__,
Expand Down

0 comments on commit cb83621

Please sign in to comment.