Skip to content

Commit

Permalink
fix github action for pythonqt 5
Browse files Browse the repository at this point in the history
  • Loading branch information
iltommi committed Mar 25, 2024
1 parent eb84d08 commit 033f9ee
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 21 deletions.
21 changes: 21 additions & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,27 @@ macM1_task:
brew install libomp git cmake fftw gcc qt lcov pkg-config zlib cmake libtiff cfitsio gsl pandoc vulkan-headers hdf5
brew install iltommi/brews/hdf4
brew install iltommi/brews/clfft
git clone https://github.com/iltommi/pythonqt.git
cd pythonqt
wget https://www.python.org/ftp/python/3.12.2/Python-3.12.2.tgz
tar -zxf Python-3.12.2.tgz
cd Python-3.12.2
./configure --prefix=$(pwd)/../python
make -j$(sysctl -n hw.ncpu)
make install
cd ..
find python/bin
cd generator
qmake -r generator.pro
make -j10
QTDIR=$(brew --prefix qt) ./pythonqt_generator
cd ..
PYTHON_VERSION=$(./python/bin/python3 --version | cut -d " " -f 2 | cut -d "." -f1,2) PYTHON_DIR=$(pwd)/python QTDIR=$(brew --prefix qt) qmake -r
make -j10
INSTALL_ROOT=$(brew --prefix) make install
cd ..
mkdir -p build && cd build
cmake ..
make -j$(sysctl -n hw.ncpu) install
Expand Down
42 changes: 21 additions & 21 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,27 +21,27 @@ jobs:
run: |
brew install --force iltommi/brews/hdf4
brew install --force iltommi/brews/clfft
- name: PyhtonQt
run: |
git clone https://github.com/iltommi/pythonqt.git
cd pythonqt
wget https://www.python.org/ftp/python/3.12.2/Python-3.12.2.tgz
tar -zxf Python-3.12.2.tgz
cd Python-3.12.2
./configure --prefix=$(pwd)/../python
make -j$(sysctl -n hw.ncpu)
make install
cd ..
find python
cd generator
qmake -r generator.pro
make -j10
QTDIR=$(brew --prefix qt) ./pythonqt_generator
cd ..
PYTHON_VERSION=$(./python/bin/python3 --version | cut -d " " -f 2 | cut -d "." -f1,2) PYTHON_DIR=$(pwd)/python QTDIR=$(brew --prefix qt) qmake -r
make -j10
INSTALL_ROOT=$(brew --prefix) make install
cd ..
# - name: PyhtonQt
# run: |
# git clone https://github.com/iltommi/pythonqt.git
# cd pythonqt
# wget https://www.python.org/ftp/python/3.12.2/Python-3.12.2.tgz
# tar -zxf Python-3.12.2.tgz
# cd Python-3.12.2
# ./configure --prefix=$(pwd)/../python
# make -j$(sysctl -n hw.ncpu)
# make install
# cd ..
# find python/bin
# cd generator
# qmake -r generator.pro
# make -j10
# QTDIR=$(brew --prefix qt) ./pythonqt_generator
# cd ..
# PYTHON_VERSION=$(./python/bin/python3 --version | cut -d " " -f 2 | cut -d "." -f1,2) PYTHON_DIR=$(pwd)/python QTDIR=$(brew --prefix qt) qmake -r
# make -j10
# INSTALL_ROOT=$(brew --prefix) make install
# cd ..
- name: Build
run: |
mkdir -p build && cd build
Expand Down

0 comments on commit 033f9ee

Please sign in to comment.