@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
i n c l u d e . . / p y t h o n 3 - v e r s i o n . m k
i n c l u d e . . / p y t h o n 3 - v e r s i o n . m k
PKG_NAME := python3
PKG_NAME := python3
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_VERSION := $( PYTHON3_VERSION) .$( PYTHON3_VERSION_MICRO)
PKG_VERSION := $( PYTHON3_VERSION) .$( PYTHON3_VERSION_MICRO)
PKG_SOURCE := Python-$( PKG_VERSION) .tar.xz
PKG_SOURCE := Python-$( PKG_VERSION) .tar.xz
@ -66,10 +66,21 @@ define Package/python3/Default/description
the development of higher quality, more maintainable code.
the development of higher quality, more maintainable code.
e n d e f
e n d e f
d e f i n e P a c k a g e / l i b p y t h o n 3
$( call Package /python 3/Default )
TITLE:= Python $( PYTHON3_VERSION) core library
DEPENDS:= +libpthread +zlib
ABI_VERSION:= $( PYTHON3_VERSION)
e n d e f
d e f i n e P a c k a g e / l i b p y t h o n 3 / d e s c r i p t i o n
This package contains only core Python library.
e n d e f
d e f i n e P a c k a g e / p y t h o n 3 - b a s e
d e f i n e P a c k a g e / p y t h o n 3 - b a s e
$( call Package /python 3/Default )
$( call Package /python 3/Default )
TITLE:= Python $( PYTHON3_VERSION) interpreter
TITLE:= Python $( PYTHON3_VERSION) interpreter
DEPENDS:= +libpthread +zlib
DEPENDS:= +libpthread +zlib +libpython3
e n d e f
e n d e f
d e f i n e P a c k a g e / p y t h o n 3 - b a s e / d e s c r i p t i o n
d e f i n e P a c k a g e / p y t h o n 3 - b a s e / d e s c r i p t i o n
@ -269,13 +280,16 @@ define Py3Package/python3-light/filespec
$( subst $ ( space ) ,$ ( newline ) ,$ ( foreach lib_file ,$ ( PYTHON 3_LIB_FILES_DEL ) ,-|$ ( lib_file ) ) )
$( subst $ ( space ) ,$ ( newline ) ,$ ( foreach lib_file ,$ ( PYTHON 3_LIB_FILES_DEL ) ,-|$ ( lib_file ) ) )
e n d e f
e n d e f
d e f i n e P y 3 P a c k a g e / p y t h o n 3 - b a s e / i n s t a l l
d e f i n e P a c k a g e / l i b p y t h o n 3 / i n s t a l l
# Adding the lib-dynload folder (even just empty) suppresses 2 warnings when starting Python
# Adding the lib-dynload folder (even just empty) suppresses 2 warnings when starting Python
$( INSTALL_DIR) $( 1) /usr/lib/python$( PYTHON3_VERSION) /lib-dynload/
$( INSTALL_DIR) $( 1) /usr/lib/python$( PYTHON3_VERSION) /lib-dynload/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libpython$( PYTHON3_VERSION) .so* $( 1) /usr/lib/
e n d e f
d e f i n e P y 3 P a c k a g e / p y t h o n 3 - b a s e / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/bin
$( INSTALL_DIR) $( 1) /usr/bin
$( LN) python$( PYTHON3_VERSION) $( 1) /usr/bin/python3
$( LN) python$( PYTHON3_VERSION) $( 1) /usr/bin/python3
$( LN) python$( PYTHON3_VERSION) $( 1) /usr/bin/python
$( LN) python$( PYTHON3_VERSION) $( 1) /usr/bin/python
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libpython$( PYTHON3_VERSION) .so* $( 1) /usr/lib/
# This depends on being called before filespec is processed
# This depends on being called before filespec is processed
$( SED) 's|$(TARGET_AR)|ar|g;s|$(TARGET_CROSS)readelf|readelf|g;s|$(TARGET_CC)|gcc|g;s|$(TARGET_CXX)|g++|g' \
$( SED) 's|$(TARGET_AR)|ar|g;s|$(TARGET_CROSS)readelf|readelf|g;s|$(TARGET_CC)|gcc|g;s|$(TARGET_CXX)|g++|g' \
$( PKG_INSTALL_DIR) /usr/lib/python$( PYTHON3_VERSION) /_sysconfigdata.py
$( PKG_INSTALL_DIR) /usr/lib/python$( PYTHON3_VERSION) /_sysconfigdata.py
@ -357,6 +371,8 @@ $(foreach package, $(PYTHON3_PACKAGES), \
$( eval $( call BuildPackage,$( package) -src) ) \
$( eval $( call BuildPackage,$( package) -src) ) \
)
)
$( eval $ ( call BuildPackage ,libpython 3) )
$( eval $ ( call Py 3Package ,python 3-base ) )
$( eval $ ( call Py 3Package ,python 3-base ) )
$( eval $ ( call Py 3Package ,python 3-light ) )
$( eval $ ( call Py 3Package ,python 3-light ) )
$( eval $ ( call Py 3Package ,python 3) )
$( eval $ ( call Py 3Package ,python 3) )