blob: ff82141b0ccd06818513e3364865dc75d4f85d29 (
plain)
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
|
#!/bin/sh
NAME="python-dateutil"
DESC="Python3 extensions for datetime module"
MAKEDEPS=""
PKG_VER=2.8.2
SOURCE="https://files.pythonhosted.org/packages/source/p/python-dateutil/python-dateutil-$PKG_VER.tar.gz"
prepare() {
apply_patches
# Generate _version.py ourselves since we don't use setuptools_scm
cat <<- EOF >dateutil/_version.py
# coding: utf-8
version = '$PKG_VER'
version_tuple = (2, 8, 2)
EOF
sed -e '/setuptools_scm/d' -i setup.cfg
sed -e "s/setup(/setup(\n version='$PKG_VER',/" -i setup.py
}
build() {
python3 setup.py build
}
package() {
python3 setup.py install --prefix=/usr --root="$PKG_DEST"
}
|