CRUX-ARM :
Home
Home
::
Documentation
::
Download
::
Development
::
Community
::
Ports
::
Packages
::
Bugs
::
Links
::
About
::
Donors
development
/
ports
/
opt-arm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
llvm: updated to 14.0.5
[ports/opt-arm.git]
/
python
/
Pkgfile
diff --git
a/python/Pkgfile
b/python/Pkgfile
index bcc33a30030d791c3d74972a36c9379e7347d4aa..c2b5ce91909cf6b875b49c53d9420aadfa0bf977 100644
(file)
--- a/
python/Pkgfile
+++ b/
python/Pkgfile
@@
-5,20
+5,24
@@
# Depends on: db gdbm openssl bzip2 zlib sqlite3
name=python
# Depends on: db gdbm openssl bzip2 zlib sqlite3
name=python
-version=2.7.1
5
-release=
1
+version=2.7.1
8
+release=
2
source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz \
pyconfig.h)
build () {
cd Python-$version
source=(http://www.python.org/ftp/$name/$version/Python-$version.tar.xz \
pyconfig.h)
build () {
cd Python-$version
+ # remove 2to3, we use the one from python3
+ rm -r Lib/lib2to3
+
export CFLAGS="-O2 -pipe -mfloat-abi=hard"
export CXXFLAGS="$CFLAGS"
export CFLAGS="-O2 -pipe -mfloat-abi=hard"
export CXXFLAGS="$CFLAGS"
- # set OPT to the python default without -O3
- # our CFLAGS are used as well
- OPT="-Wall -Wstrict-prototypes -fwrapv" \
+ # remove tests
+ rm -r Lib/{bsddb,ctypes,email,lib-tk,sqlite3,unittest}/test
+ rm -r Lib/{{distutils,json}/tests,idlelib/idle_test,test}
+
./configure --prefix=/usr \
--enable-shared \
--with-threads \
./configure --prefix=/usr \
--enable-shared \
--with-threads \
@@
-35,9
+39,8
@@
build () {
ln -s python2.7 $PKG/usr/include/python
ln -s /usr/lib/libpython2.7.so $PKG/usr/lib/python2.7/config/libpython2.7.so
ln -s python2.7 $PKG/usr/include/python
ln -s /usr/lib/libpython2.7.so $PKG/usr/lib/python2.7/config/libpython2.7.so
- rm -r $PKG/usr/lib/python/{bsddb,ctypes,email,sqlite3}/test
- rm -r $PKG/usr/lib/python/{distutils,json,lib2to3}/tests
- rm $PKG/usr/lib/python/{distutils,site-packages,test/data}/README
+ rm $PKG/usr/bin/2to3
+ rm $PKG/usr/lib/python/{distutils,site-packages}/README
rm $PKG/usr/lib/python/idlelib/{ChangeLog,{NEWS,README,TODO}.txt}
rm $PKG/usr/lib/python/ctypes/macholib/README.ctypes
rm $PKG/usr/lib/python/idlelib/{ChangeLog,{NEWS,README,TODO}.txt}
rm $PKG/usr/lib/python/ctypes/macholib/README.ctypes