mirror of
https://github.com/openwrt/packages.git
synced 2025-12-19 17:11:21 +00:00
python3: Split venv module from python3-light into separate package
This adds a new subpackage for the venv module. This also moves the
ensurepip module from python3-pip into python3-venv, as ensurepip is not
necessary for pip but often used for venv.
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
(cherry picked from commit d53475ac21)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -29,7 +29,6 @@ define Py3Package/python3-pip/install
|
||||
endef
|
||||
|
||||
$(eval $(call Py3BasePackage,python3-pip, \
|
||||
/usr/lib/python$(PYTHON3_VERSION)/ensurepip \
|
||||
, \
|
||||
DO_NOT_ADD_TO_PACKAGE_DEPENDS \
|
||||
))
|
||||
|
||||
19
lang/python/python3/files/python3-package-venv.mk
Normal file
19
lang/python/python3/files/python3-package-venv.mk
Normal file
@@ -0,0 +1,19 @@
|
||||
#
|
||||
# Copyright (C) 2023 Jeffery To
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
define Package/python3-venv
|
||||
$(call Package/python3/Default)
|
||||
TITLE:=Python $(PYTHON3_VERSION) venv module
|
||||
DEPENDS:=+python3
|
||||
endef
|
||||
|
||||
$(eval $(call Py3BasePackage,python3-venv, \
|
||||
/usr/lib/python$(PYTHON3_VERSION)/ensurepip \
|
||||
/usr/lib/python$(PYTHON3_VERSION)/venv \
|
||||
, \
|
||||
DO_NOT_ADD_TO_PACKAGE_DEPENDS \
|
||||
))
|
||||
Reference in New Issue
Block a user