diff options
Diffstat (limited to 'scripts/python-setuptools')
-rw-r--r-- | scripts/python-setuptools/build.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/scripts/python-setuptools/build.sh b/scripts/python-setuptools/build.sh new file mode 100644 index 0000000..cc903a7 --- /dev/null +++ b/scripts/python-setuptools/build.sh @@ -0,0 +1,17 @@ +#!/bin/bash +name=python-setuptools +version=41.2.0 +revision=0 +sources=(https://github.com/pypa/setuptools/archive/v${version}.tar.gz) +depends=('python-3') + +function prepare() { + tar xf v${version}.tar.gz + cd ${name/python-/}-${version} +} + +function package() { + python bootstrap.py + python setup.py install --root="${destdir}" --prefix="${prefix}" + #find ${destdir} -type f | xargs -I'{}' sed -i -e "s|${build_runtime}|${prefix}|g" '{}' +} |