Files
BMLFS/build-scripts/Cython.build
2024-01-01 20:10:27 -06:00

56 lines
2.0 KiB
Bash

#! /bin/bash
# Cython
# Source: https://github.com/cython/cython/releases/download/3.0.2/Cython-3.0.2.tar.gz
# Source: https://github.com/cython/cython/releases/download/0.29.36/Cython-0.29.36.tar.gz
#
# $BUILD = Directory to temporarily install
# $PKGS = Directory to store built packages
#
# DEPS
# Required: Python3
# Recommended: NONE
# Optional: NONE
#
# NOTE: libimobiledevice does not support Cython 3.x
# NOTE: So far, no package requires Cython 3.x
# If coptimizing with GCC:
export CFLAGS="-march=native -mtune=native -pipe "
export CFLAGS+="-O3 -ffat-lto-objects -flto=4 "
export LDFLAGS="-flto=4 -Wl,-O2 -Wl,--as-needed "
#read -p "Compile?" && python3 setup.py build &&
pip3 wheel -w dist --no-build-isolation --no-deps --no-cache-dir $PWD
#sudo -S python3 setup.py install --prefix=/usr --root=$BUILD &&
sudo -S pip3 install --no-index --find-links=dist --no-cache-dir --no-user Cython --root=${BUILD}
cd $BUILD && sudo -S mkdir -v ${BUILD}/install &&
cat > /tmp/slack-desc << "EOF"
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description. Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in. You must
# make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.
|-----handy-ruler------------------------------------------------------|
Cython: Cython (C bindings for Python)
Cython:
Cython: Cython is a language that makes writing C extensions for the Python
Cython: language as easy as Python itself. Cython is based on the well-known
Cython: Pyrex, but supports more cutting edge functionality and optimizations.
Cython:
Cython: Homepage: http://www.cython.org/
Cython:
Cython:
Cython:
Cython:
EOF
sudo -S mv -v /tmp/slack-desc install/ &&
sudo -S makepkg -l y -c n $PKGS/Cython-0.29.36-$PSUFFIX &&
sudo -S rm -rf ${BUILD}/*