This commit is contained in:
dynasticorpheus 2024-04-17 22:46:37 +08:00 committed by GitHub
commit cb9656e75b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 17 additions and 2 deletions

View File

@ -11,7 +11,7 @@ include $(TOPDIR)/rules.mk
include ../python3-version.mk
PKG_NAME:=python3
PKG_RELEASE:=1
PKG_RELEASE:=2
PKG_VERSION:=$(PYTHON3_VERSION).$(PYTHON3_VERSION_MICRO)
PKG_SOURCE:=Python-$(PKG_VERSION).tar.xz
@ -262,7 +262,6 @@ define Py3Package/python3-light/filespec
-|/usr/lib/python$(PYTHON3_VERSION)/idlelib
-|/usr/lib/python$(PYTHON3_VERSION)/tkinter
-|/usr/lib/python$(PYTHON3_VERSION)/turtledemo
-|/usr/lib/python$(PYTHON3_VERSION)/webbrowser.py
-|/usr/lib/python$(PYTHON3_VERSION)/_osx_support.py
$(foreach lib_file,$(filter /usr/lib/python$(PYTHON3_VERSION)/%,$(PYTHON3_LIB_FILES_DEL)),
-|$(lib_file)

View File

@ -0,0 +1,16 @@
#
# Copyright (C) 2006-2016 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
define Package/python3-webbrowser
$(call Package/python3/Default)
TITLE:=Python $(PYTHON3_VERSION) Web-browser controller
DEPENDS:=+python3-light
endef
$(eval $(call Py3BasePackage,python3-webbrowser, \
/usr/lib/python$(PYTHON3_VERSION)/webbrowser.py \
))