-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Currency: added build_script and updated build_info.json for Matplotlib v3.8.0 #5346
Merged
shubham-dayma-ibm
merged 2 commits into
ppc64le:python-ecosystem
from
kiranNukal:mat_3.8.0
Feb 4, 2025
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
#!/bin/bash -e | ||
# ----------------------------------------------------------------------------- | ||
# | ||
# Package : matplotlib | ||
# Version : v3.8.0 | ||
# Source repo : https://github.com/matplotlib/matplotlib.git | ||
# Tested on : UBI:9.3 | ||
# Language : Python | ||
# Travis-Check : True | ||
# Script License: Apache License, Version 2 or later | ||
# Maintainer : Sai Kiran Nukala <[email protected]> | ||
# | ||
# Disclaimer: This script has been tested in root mode on the given | ||
# platform using the mentioned version of the package. | ||
# It may not work as expected with newer versions of the | ||
# package and/or distribution. In such a case, please | ||
# contact the "Maintainer" of this script. | ||
# | ||
# ----------------------------------------------------------------------------- | ||
|
||
# Exit immediately if a command exits with a non-zero status | ||
set -e | ||
|
||
echo "Installing dependencies..." | ||
yum install -y python3-pip python3 python python3-devel git gcc-c++ cmake wget | ||
yum install -y openblas-devel ninja-build | ||
yum install -y zlib zlib-devel libjpeg-turbo libjpeg-turbo-devel | ||
echo "Dependencies installed." | ||
|
||
echo "Cloning the $PACKAGE_NAME package..." | ||
# Clone the matplotlib package. | ||
PACKAGE_NAME=matplotlib | ||
PACKAGE_VERSION=${1:-v3.8.0} | ||
PACKAGE_URL=https://github.com/matplotlib/matplotlib.git | ||
git clone $PACKAGE_URL | ||
cd $PACKAGE_NAME/ | ||
git checkout $PACKAGE_VERSION | ||
git submodule update --init | ||
echo "Cloned and checked out to version $PACKAGE_VERSION." | ||
|
||
echo "Downloading and preparing qhull..." | ||
# Download qhull | ||
mkdir -p build | ||
wget 'http://www.qhull.org/download/qhull-2020-src-8.0.2.tgz' | ||
gunzip qhull-2020-src-8.0.2.tgz | ||
tar -xvf qhull-2020-src-8.0.2.tar --no-same-owner | ||
mv qhull-2020.2 build/ | ||
rm -f qhull-2020-src-8.0.2.tar | ||
echo "qhull downloaded and prepared." | ||
|
||
echo "Setting up virtual environment for Python..." | ||
# Setup virtual environment for python | ||
pip install pytest hypothesis build meson pybind11 meson-python | ||
echo "Python environment set up." | ||
|
||
echo "Installing dependencies for $PACKAGE_NAME..." | ||
# Install package dependencies | ||
pip install 'numpy<2' fontTools setuptools-scm contourpy kiwisolver python-dateutil cycler pyparsing pillow certifi | ||
pip install --upgrade setuptools | ||
echo "Dependencies installed." | ||
|
||
echo "Building and installing $PACKAGE_NAME..." | ||
# Build and Install the package (This is dependent on numpy, pillow) | ||
if ! (pip install -e .); then | ||
echo "------------------$PACKAGE_NAME:Install_fails-------------------------------------" | ||
echo "$PACKAGE_URL $PACKAGE_NAME" | ||
echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Install_Fails" | ||
exit 1 | ||
fi | ||
echo "$PACKAGE_NAME installed successfully." | ||
|
||
echo "Running tests for $PACKAGE_NAME..." | ||
# Test the package | ||
if ! (pytest ./lib/matplotlib/tests/test_units.py); then | ||
echo "------------------$PACKAGE_NAME:build_success_but_test_fails---------------------" | ||
echo "$PACKAGE_URL $PACKAGE_NAME" | ||
echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Fail | Build_success_but_test_Fails" | ||
exit 2 | ||
else | ||
echo "------------------$PACKAGE_NAME:install_&_test_both_success-------------------------" | ||
echo "$PACKAGE_URL $PACKAGE_NAME" | ||
echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | GitHub | Pass | Both_Install_and_Test_Success" | ||
exit 0 | ||
fi |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure build_info.json covers all the build-scripts available for different version. We can't remove 3.7.1 from here, if it was working for that version