Fix the whole python building process to do proper crosscompiling for all python
modules in openwrt. Thanks to ryd for helping to make this possible. (Only numpy is completly broken now because it has dependencies which where pervioulsy taken from the build system) git-svn-id: svn://svn.openwrt.org/openwrt/packages@12821 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
@ -40,6 +40,14 @@ define PyPackage/python-sqlite/filespec
|
||||
-|$(PYTHON_PKG_DIR)/pysqlite2/test
|
||||
endef
|
||||
|
||||
define Build/Configure
|
||||
cp ./files/setup.cfg.in $(PKG_BUILD_DIR)/setup.cfg
|
||||
$(SED) \
|
||||
's,@INCLUDE_DIRS@,$(STAGING_DIR)/usr/include,g' \
|
||||
-e 's,@INCLUDE_DIRS@,$(STAGING_DIR)/usr/include,g' \
|
||||
$(PKG_BUILD_DIR)/setup.cfg
|
||||
endef
|
||||
|
||||
define Build/Compile
|
||||
$(if $(Build/Compile/PyMod),,@echo Python packaging code not found.; false)
|
||||
$(call Build/Compile/PyMod,., \
|
||||
@ -49,7 +57,3 @@ endef
|
||||
|
||||
$(eval $(call PyPackage,python-sqlite))
|
||||
$(eval $(call BuildPackage,python-sqlite))
|
||||
|
||||
$(eval $(call RequireHeader,/usr/include/gnu/stubs-32.h, \
|
||||
$(PKG_NAME) requires a 32-bits toolchain. \
|
||||
))
|
||||
|
5
lang/pysqlite/files/setup.cfg.in
Normal file
5
lang/pysqlite/files/setup.cfg.in
Normal file
@ -0,0 +1,5 @@
|
||||
[build_ext]
|
||||
define=
|
||||
include_dirs=@INCLUDE_DIRS@
|
||||
library_dirs=@LIBRARY_DIRS@
|
||||
libraries=sqlite3
|
Reference in New Issue
Block a user