<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/lang/python/python3/files, branch openwrt-23.05</title>
<subtitle>Community maintained packages for OpenWrt</subtitle>
<id>http://x-nagi.com/cgit/packages/atom?h=openwrt-23.05</id>
<link rel='self' href='http://x-nagi.com/cgit/packages/atom?h=openwrt-23.05'/>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/'/>
<updated>2023-09-05T04:42:50Z</updated>
<entry>
<title>python3: Restore platform triplet to paths</title>
<updated>2023-09-05T04:42:50Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2023-06-29T08:33:25Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=ec9d61450ee9831a28ec712166a791fffd0888b3'/>
<id>urn:sha1:ec9d61450ee9831a28ec712166a791fffd0888b3</id>
<content type='text'>
This removes 014-remove-platform-so-suffix.patch and
016-adjust-config-paths.patch, restoring the platform triplet to paths
for:

* C extensions (*.cpython-311-*.so)

* Build config data directory (/usr/lib/python3.11/config-3.11-*/)

* sysconfig data file (/usr/lib/python3.11/_sysconfigdata_*.py)

Setting `_PYTHON_SYSCONFIGDATA_NAME` during package builds ensures that
sysconfig data for target Python is loaded, in particular so that C
extensions built will have the correct extension / platform triplet.

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
(cherry picked from commit 0fe10114208e2c5cd572df043945a52e3ebeb6dd)
</content>
</entry>
<entry>
<title>python3: Centralize config file adjustments in Build/Install</title>
<updated>2023-09-05T04:42:09Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2023-06-29T08:13:52Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=b8d9ad62e04007697cd8a3bf24f1c4a8f788ea81'/>
<id>urn:sha1:b8d9ad62e04007697cd8a3bf24f1c4a8f788ea81</id>
<content type='text'>
Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
(cherry picked from commit b595362b8567521b9bdf003dcc88f9b962c22b10)
</content>
</entry>
<entry>
<title>python3: Fix package descriptions</title>
<updated>2023-09-05T04:41:29Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2023-07-13T05:39:35Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=14792007907dd1aa5bcd16dca03f4df551b60b6c'/>
<id>urn:sha1:14792007907dd1aa5bcd16dca03f4df551b60b6c</id>
<content type='text'>
* Fix default Python package description not included in individual
  package descriptions

* Update default Python package description text (from General Python
  FAQ, "What is Python?")

* Add package descriptions for Python module packages

* Reduce duplication in package titles

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
(cherry picked from commit 329f9a139157840ad129991e961a63f7f4362d62)
</content>
</entry>
<entry>
<title>python3: Split setuptools into separate source package</title>
<updated>2023-05-28T12:47:08Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2023-05-18T12:38:09Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=d6cc46e2c284fd694123546950b6bca39a1adcda'/>
<id>urn:sha1:d6cc46e2c284fd694123546950b6bca39a1adcda</id>
<content type='text'>
Packaging setuptools from a separate source package allows it to stay
updated with upstream.

Host setuptools will remain installed as part of python3. Host
setuptools is used in a much more controlled way and so is less critical
for it to track upstream.

setuptools was in a separate source package that was removed in
a53d0c5a403d1669e2cf6c59c2be6a9d3ed633a0; this work is not based on that
earlier package.

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
(cherry picked from commit b4975f8bbb9f61a2a170dc1acd6cabe2b7e9f93c)
</content>
</entry>
<entry>
<title>python3: Split pip into separate source package</title>
<updated>2023-05-28T12:47:08Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2023-05-18T05:36:24Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=b997e1bb69b1d8c31f4fd7fe02c27d9a2b1d9c3d'/>
<id>urn:sha1:b997e1bb69b1d8c31f4fd7fe02c27d9a2b1d9c3d</id>
<content type='text'>
Packaging pip from a separate source package allows it to stay updated
with upstream.

Host pip will remain installed as part of python3. Host pip is used in a
much more controlled way and so is less critical for it to track
upstream.

This also removes the python-pip-conf package and installs the pip.conf
file as part of python3-pip.

The patch 003-disable-pip-version-check.patch is originally from Debian:
https://salsa.debian.org/python-team/packages/python-pip/-/blob/bb079efb8c6dd2c284eee94cf90e61bce19a6f73/debian/patches/disable-pip-version-check.patch

pip was in a separate source package that was removed in
a53d0c5a403d1669e2cf6c59c2be6a9d3ed633a0; this work is not based on that
earlier package.

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
(cherry picked from commit eee273507b868ad5f6f7e744d513c85330967906)
</content>
</entry>
<entry>
<title>python3: Split venv module from python3-light into separate package</title>
<updated>2023-05-28T12:47:08Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2023-05-17T17:02:13Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=28b70d4fa9626adc85f4f336e944be7bdf08b21d'/>
<id>urn:sha1:28b70d4fa9626adc85f4f336e944be7bdf08b21d</id>
<content type='text'>
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 &lt;jeffery.to@gmail.com&gt;
(cherry picked from commit d53475ac21cf79bef902b61fac69ffe25a3aad2f)
</content>
</entry>
<entry>
<title>python3: Update to 3.11.3, refresh/redo patches</title>
<updated>2023-05-24T04:34:32Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2023-05-05T09:23:49Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=24aa47eb2b26c71ce6beeb4e1793ebb43c65cc30'/>
<id>urn:sha1:24aa47eb2b26c71ce6beeb4e1793ebb43c65cc30</id>
<content type='text'>
* Removed patches:

  * 001-enable-zlib.patch: zlib module should be enabled automatically

  * 007-distutils-do-not-adjust-path.patch: Not necessary since we
    process shebang lines for all scripts (in python3-package.mk)

  * 030-bpo-43112-detect-musl-as-a-separate-SOABI-GH-24502.patch:
    Already merged

* Move configure vars from config.site back into Makefile

  Centralizing all build information into one file makes it easier to
  maintain

* No longer set ac_cv_header_uuid_h=yes as configure should detect
  libuuid

* Order configure args by enable-/disable-/with-/without-, then
  alphabetically

* Set ac_cv_working_openssl_hashlib=yes for host configure to bypass the
  OpenSSL API tests with LibreSSL

* Use the default Host/Compile recipe instead of picking out specific
  targets to make

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
(cherry picked from commit 2445fe9fb25e6d9eed28aa9ad237bd250d1600d1)
</content>
</entry>
<entry>
<title>python3: add 'ensurepip' to python3-pip sub-package</title>
<updated>2023-01-25T12:03:33Z</updated>
<author>
<name>Alexandru Ardelean</name>
<email>alex@shruggie.ro</email>
</author>
<published>2023-01-25T12:03:29Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=1f317dfb75216904c92c3c8a64e088fb6b4c551b'/>
<id>urn:sha1:1f317dfb75216904c92c3c8a64e088fb6b4c551b</id>
<content type='text'>
Fixes:
  https://github.com/openwrt/packages/issues/12707

Seems to work.
Looking into the 'venv' lib, it seems it's installing pip &amp; setuptools
inside a virtual environment.

`python3-pip` is already ~6 MB.
This adds another ~3 MB.

But, this gives users the ability to run Python virtual environments, which
is a pretty common feature of Python in production cases (usually web
stuff).

Signed-off-by: Alexandru Ardelean &lt;alex@shruggie.ro&gt;
</content>
</entry>
<entry>
<title>python3: bump to version 3.10.0</title>
<updated>2021-11-19T11:30:14Z</updated>
<author>
<name>Alexandru Ardelean</name>
<email>ardeleanalex@gmail.com</email>
</author>
<published>2021-10-27T09:10:02Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=4e05541782edeb06b51d691dadf52648df24c940'/>
<id>urn:sha1:4e05541782edeb06b51d691dadf52648df24c940</id>
<content type='text'>
Manually re-applied:
  008-distutils-use-python-sysroot.patch
  016-adjust-config-paths.patch

Drop patch: 003-do-not-run-distutils-tests.patch
There is now a configure option '--disable-test-modules'
And seems we left the '_ctypes_test' around for quite some time.
Dropped now.
Refs:
  https://bugs.python.org/issue27640
  https://bugs.python.org/issue43282

Drop patch: 013-getbuildinfo-date-time-source-date-epoch.patch
Python build honors SOURCE_DATE_EPOCH pretty well now.

Drop setuptools patches. Setuptools should be reproducible with Python 3.6+
according to a mention here:
  https://github.com/pypa/setuptools/pull/1690#issuecomment-536517456
It's time to let upstream fix Setuptools reproduce-ability.

Drop patch: 010-do-not-add-rt-lib-dirs-when-cross-compiling.patch
I can't seem to fully remember why it's there.
And it seem to build fine without it.

Drop patch: 015-abort-on-failed-modules.patch
Python build supports a similar PYTHONSTRICTEXTENSIONBUILD=1 env-var
option.

Add patch: 026-openssl-feature-flags.patch
We need to keep this in our tree for a while.
See:
  https://bugs.python.org/issue45627

Backport patch: 027-bpo-43158-Use-configure-values-for-building-_uuid-ex.patch
Link: https://github.com/python/cpython/pull/29353
Fixes the build for uuid C module.

Add patch: 028-host-python-support-ssl-with-libressl.patch
We need the _ssl module working on the host-side with LibreSSL for pip to
work to download from https://pypi.org
Refs: https://github.com/openwrt/openwrt/pull/4749

Add patch: 029-disable-deprecation-warning.patch
Fixes apparmor build. The warning causes a configure error.

Refreshed the rest of patches.

Some old build-flags were removed. They don't seem to be necessary anymore.

Split python3-uuid from python3-light. To better manage the libuuid library
(if needed). Also, fixing the uuid C module build. Seems this was failing,
and was falling back to using hashlib.

Signed-off-by: Alexandru Ardelean &lt;ardeleanalex@gmail.com&gt;
</content>
</entry>
<entry>
<title>python3-setuptools: add _distutils_hack</title>
<updated>2021-08-18T10:20:07Z</updated>
<author>
<name>Josef Schlehofer</name>
<email>pepe.schlehofer@gmail.com</email>
</author>
<published>2021-08-18T10:12:01Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=feaaacc10fff283505ff261ed6886a4936fbe7f5'/>
<id>urn:sha1:feaaacc10fff283505ff261ed6886a4936fbe7f5</id>
<content type='text'>
I tried to install matplotlib by using pip and it failed with the following output:

2021-08-18T11:52:26,171 Collecting matplotlib
2021-08-18T11:52:26,173   Created temporary directory: /tmp/pip-unpack-wuth2u0e
2021-08-18T11:52:26,565   Using cached matplotlib-3.4.3.tar.gz (37.9 MB)
2021-08-18T11:52:38,659   Added matplotlib from https://files.pythonhosted.org/packages/21/37/           197e68df384ff694f78d687a49ad39f96c67b8d75718bc61503e1676b617/matplotlib-3.4.3.tar.                       gz#sha256=fc4f526dfdb31c9bd6b8ca06bf9fab663ca12f3ec9cdf4496fb44bc680140318 to build tracker '/tmp/pip-   req-tracker-u30x8pht'
2021-08-18T11:52:38,660     Running setup.py (path:/tmp/pip-install-afiyiers/                            matplotlib_8e717e38862f4976a3d6cb1832ba3261/setup.py) egg_info for package matplotlib
2021-08-18T11:52:38,661     Created temporary directory: /tmp/pip-pip-egg-info-kbtiezxq
2021-08-18T11:52:38,662     Running command python setup.py egg_info
2021-08-18T11:52:38,831     Traceback (most recent call last):
2021-08-18T11:52:38,832       File "&lt;string&gt;", line 1, in &lt;module&gt;
2021-08-18T11:52:38,832       File "/usr/lib/python3.9/site-packages/setuptools/__init__.py", line 8, in &lt;module&gt;
2021-08-18T11:52:38,833     ModuleNotFoundError: No module named '_distutils_hack'

More details about it:
- https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=968410

Once I applied the patch from the bug tracker, I got further to install
it.

Signed-off-by: Josef Schlehofer &lt;pepe.schlehofer@gmail.com&gt;
</content>
</entry>
</feed>
