-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpython-flit
More file actions
42 lines (26 loc) · 861 Bytes
/
python-flit
File metadata and controls
42 lines (26 loc) · 861 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
export CFLAGS=-"O2"
export CXXFLAGS="-O2"
PKG_VER=3.12.0
URL=https://github.com/takluyver/flit/archive/$PKG_VER.tar.gz
TAR=$(echo $URL | sed -r 's|(.*)/||')
DIR=flit-$(echo $TAR | sed 's|.tar.*||g')
PACKAGE=python-flit
# Get Package
cd /blfs/builds
wget $URL
tar -xvf $TAR
cd $DIR
# Build
python3 -m flit build --format wheel
# Install
PIP_CONFIG_FILE=/dev/null pip install --isolated --root="/pkgs/$PACKAGE" --ignore-installed --no-deps dist/*.whl
cd /pkgs
sudo cp -rpv /pkgs/$PACKAGE/* /
sudo echo "python python-build python-requests python-urllib3 python-chardet python-idna python-certifi python-docutils" > /pkgs/$PACKAGE/depends
sudo echo "" > /pkgs/$PACKAGE/make-depends
sudo echo "$PKG_VER" > /pkgs/$PACKAGE/version
sudo tar -cvapf $PACKAGE.tar.xz $PACKAGE
sudo cp $PACKAGE.tar.xz /finished
cd /blfs/builds
sudo rm -r $DIR