--- admin/PlamoBuild-template-20170713 2017-07-13 13:07:00.000000000 +0900 +++ plamo/05_ext/python_append.txz/python_setuptools/PlamoBuild.python_setuptools-11.3.1 2018-03-31 11:16:40.000000000 +0900 @@ -1,19 +1,23 @@ #!/bin/sh ###################################################################### -url="" +url="https://pypi.python.org/packages/source/s/setuptools/setuptools-11.3.1.tar.gz" verify= digest= branch= commitid= -pkgbase= -vers= +pkgbase=python_setuptools +vers=11.3.1 arch=`uname -m` -build=P1 -src=$pkgbase-$vers +build=P2 +src[0]=setuptools-$vers +src[1]=setuptools-$vers patchfiles="" OPT_CONFIG="" -DOCS="README" +DOCS="CHANGES.txt DEVGUIDE.txt `echo docs/{developer-guide,development}.txt` + `echo docs/{easy_install,formats,history,index,merge-faq,merge}.txt` + `echo docs/{pkg_resources,python3,releases,roadmap,setuptools,using}.txt` + README.txt" template=20170713 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -44,6 +48,10 @@ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} fi + case $i in + 0) python setup.py config ;; + 1) python3 setup.py config ;; + esac done fi if [ $opt_build -eq 1 ] ; then @@ -52,6 +60,10 @@ if [ -f Makefile ] ; then make fi + case $i in + 0) python setup.py build ;; + 1) python3 setup.py build ;; + esac done fi if [ $opt_package -eq 1 ] ; then @@ -64,6 +76,10 @@ if [ -f Makefile ] ; then make install DESTDIR=$P fi + case $i in + 0) python setup.py install --root $P ;; + 1) python3 setup.py install --root $P ;; + esac done touch $W/i.et cd $W @@ -73,7 +89,10 @@ setup_docdir convert_links tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` - tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir/python2*/site-packages -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P \ + `cd $P ; find usr/$libdir/python3*/site-packages -maxdepth 1 | tail -n+2` tar rvpf $pkg.tar -C $P usr/share/doc/$src touch -t `date '+%m%d0900'` $pkg.tar ; xz $pkg.tar ; touch $pkg.tar.xz mv $pkg.tar.xz $pkg.txz