Skip to content

Commit

Permalink
Create pypi_upload_onlydocker_win.sh
Browse files Browse the repository at this point in the history
this file is useful for ref. But windows is not an available platform in docker/mac
  • Loading branch information
borisbolliet committed Sep 29, 2024
1 parent 665fa91 commit 4cab3db
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions pypi_upload_onlydocker_win.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@

# Change to the class-sz directory
cd class-sz/

# Clean previous builds
make clean

# Go back to the root directory
cd ..

# Remove old build files
rm -rf build dist *.egg-info
rm -rf class-sz/python/classy_sz.*so
rm -rf class-sz/python/classy_sz.*egg-info

# Check if Docker is running (this is relevant for Linux builds)
docker --version

# Set environment variables and build wheels for Windows
CIBW_BUILD="cp310-*" \
CIBW_SKIP="cp27-* cp34-* cp35-* cp36-* cp37-* cp38-* pp* *-win32" \
CIBW_ARCHS="x86" \
CIBW_BEFORE_BUILD="curl -O https://ftp.gnu.org/gnu/gsl/gsl-2.7.1.tar.gz && \
tar -xzf gsl-2.7.1.tar.gz && \
cd gsl-2.7.1 && \
./configure --prefix=/usr/local && \
make && \
make install && \
cd .. && \
curl -O http://www.fftw.org/fftw-3.3.10.tar.gz && \
tar -xzf fftw-3.3.10.tar.gz && \
cd fftw-3.3.10 && \
./configure --prefix=/usr/local --enable-shared && \
make && \
make install" \

CIBW_PLATFORM=windows

python -m cibuildwheel --output-dir dist

0 comments on commit 4cab3db

Please sign in to comment.