<feed xmlns='http://www.w3.org/2005/Atom'>
<title>packages/lang/python/python3-package.mk, branch openwrt-19.07</title>
<subtitle>Community maintained packages for OpenWrt</subtitle>
<id>http://x-nagi.com/cgit/packages/atom?h=openwrt-19.07</id>
<link rel='self' href='http://x-nagi.com/cgit/packages/atom?h=openwrt-19.07'/>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/'/>
<updated>2020-07-08T09:12:33Z</updated>
<entry>
<title>python3: Use default _PYTHON_HOST_PLATFORM</title>
<updated>2020-07-08T09:12:33Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2020-07-08T09:10:14Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=4b0c1f8714a65942f90d1fb922a81179a17ffc98'/>
<id>urn:sha1:4b0c1f8714a65942f90d1fb922a81179a17ffc98</id>
<content type='text'>
This lets the Python build process set _PYTHON_HOST_PLATFORM instead of
forcing an explicit value.

Also:

* Save the target _PYTHON_HOST_PLATFORM value during Build/InstallDev
  for use when building target Python packages (in python3-package.mk).

* Use the (mostly) default PYTHON_FOR_BUILD value, instead patch
  configure to remove the platform triplet from the sysconfigdata file
  name.

* Remove the "CROSS_COMPILE=yes" make variable (there is no indication
  that this variable is necessary).

* Force host pip to build packages from source instead of downloading
  binary wheels.

  Previously, host pip can download universal (platform-independent)
  wheels but not platform-specific wheels, because of the custom
  _PYTHON_HOST_PLATFORM value. (Packages that do not have universal
  wheels would be compiled from source.)

  With a correct _PYTHON_HOST_PLATFORM, host pip can install
  platform-specific wheels as well. However, the pre-built shared object
  (.so) files in these wheels will have the host's platform triplet in
  their file names. When target Python packages are built (using the
  target's _PYTHON_HOST_PLATFORM), Python will not use these shared
  object files.

  By forcing host pip to build packages from source, the built shared
  object files will not have the platform triplet in their file names.
  (Host Python has been patched to remove the platform triplet from file
  names.) This allows these packages to be used when building target
  Python packages.

  (The net effect of this complete change is that platform-dependent
  packages will continue to be compiled from source, while
  platform-independent packages will now also be compiled from source.)

Fixes https://github.com/openwrt/packages/issues/12680.

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
</content>
</entry>
<entry>
<title>django: move django* packages under django submenu</title>
<updated>2019-10-22T23:59:52Z</updated>
<author>
<name>Eneas U de Queiroz</name>
<email>cotequeiroz@gmail.com</email>
</author>
<published>2019-07-09T12:12:06Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=db4cbf71a588531b7f432725ae14beb37e7af67e'/>
<id>urn:sha1:db4cbf71a588531b7f432725ae14beb37e7af67e</id>
<content type='text'>
This changes the python[3]-django dependencies in packages to be
non-selecting, and adds an MDEPENDS line so that the *-src packages get
placed inside the django menu as well.

Added MENU:= to the src-package definitions in python[3]-package.mk,
so it does not import that setting from the binary package.

Signed-off-by: Eneas U de Queiroz &lt;cotequeiroz@gmail.com&gt;
(cherry-picked from commit 90527d75afe1847fdddad973ca4ad988f826c8c4)
</content>
</entry>
<entry>
<title>Merge pull request #9100 from jefferyto/isolate-host-python</title>
<updated>2019-06-03T09:11:20Z</updated>
<author>
<name>Rosen Penev</name>
<email>rosenp@gmail.com</email>
</author>
<published>2019-06-03T09:11:20Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=15a06064034478ab65f0c19dad3e043578226a45'/>
<id>urn:sha1:15a06064034478ab65f0c19dad3e043578226a45</id>
<content type='text'>
python,python3: Better isolate host Python</content>
</entry>
<entry>
<title>python,python3: Update host pip[3] install functions</title>
<updated>2019-05-29T13:45:16Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2019-05-29T13:45:16Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=ae80ddc7ab1486a2e4788a8bd4b9c1643ce29c29'/>
<id>urn:sha1:ae80ddc7ab1486a2e4788a8bd4b9c1643ce29c29</id>
<content type='text'>
* Add --cache-dir option to set the pip cache to a directory in
$(DL_DIR), instead of pip's default (build user's ~/.cache/pip),
fixes #9066

* Add --disable-pip-version-check option, since the version check only
prints a message saying a new version is available

* Combine host_python_pip_install and host_python_pip_install_host into
Build/Compile/HostPy[3]PipInstall

* Remove --root and --prefix options, since this function is only used
to install packages to host Python's default site-packages directory
(setting these may serve to confuse pip)

* Pass all of $(HOST_PYTHON[3]_PACKAGE_BUILD_DEPENDS) to the function,
since pip can handle multiple arguments/packages

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
</content>
</entry>
<entry>
<title>python,python3: Clear more fields for src packages</title>
<updated>2019-05-27T16:43:26Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2019-05-27T16:43:26Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=6952970b2e7bcc02776d6380459da2865c1c26f6'/>
<id>urn:sha1:6952970b2e7bcc02776d6380459da2865c1c26f6</id>
<content type='text'>
This clears the CONFLICTS, PROVIDES, EXTRA_DEPENDS, and USERID fields
for -src packages.

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
</content>
</entry>
<entry>
<title>python,python3: Add PYTHON[3]_PKG_SETUP_GLOBAL_ARGS</title>
<updated>2019-04-05T08:44:55Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2019-04-05T08:44:55Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=9995fe7732a8ad220476a40fec742c99a01df5e8'/>
<id>urn:sha1:9995fe7732a8ad220476a40fec742c99a01df5e8</id>
<content type='text'>
Some packages (PyYAML,
https://github.com/openwrt/packages/pull/8482#discussion_r270692276)
recognize "global" options to setup.py; these must appear before the
"install" command on the command line.

This adds PYTHON[3]_PKG_SETUP_GLOBAL_ARGS, which let packages set these
global options.

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
</content>
</entry>
<entry>
<title>python,python3: Fix overridden usr/bin symlinks</title>
<updated>2019-04-03T13:05:14Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2019-03-31T11:11:15Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=0280c67103f525937569528c8ba88fa3e144a903'/>
<id>urn:sha1:0280c67103f525937569528c8ba88fa3e144a903</id>
<content type='text'>
Currently, all files in usr/bin (presumably all Python scripts) are run
through sed to replace the shebang; sed will overwrite the file whether
or not a match is found. This causes symlinks to be overridden and made
into copies of their targets. python[3]-base and python[3]-dev are
affected by this.

This adds the --follow-symlinks flag to sed, in addition to using
$(SED), so that symlinks are not overridden.

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
</content>
</entry>
<entry>
<title>python,python3: allow users to override python args &amp; vars</title>
<updated>2019-02-23T09:00:59Z</updated>
<author>
<name>Alexandru Ardelean</name>
<email>ardeleanalex@gmail.com</email>
</author>
<published>2019-02-19T09:00:09Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=9b36b449dc28816f94fe77db3b77b6bb26722ab1'/>
<id>urn:sha1:9b36b449dc28816f94fe77db3b77b6bb26722ab1</id>
<content type='text'>
If users want to define these before including python[3]-package.mk, these
vars will be overridden during the include.
So, override these vars if they haven't been defined.

Signed-off-by: Alexandru Ardelean &lt;ardeleanalex@gmail.com&gt;
</content>
</entry>
<entry>
<title>python,python3: Add PYTHON_PKG_SETUP_DIR</title>
<updated>2019-02-23T08:59:22Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2019-02-21T11:52:07Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=5d72e9bf7e36d2398d1d794a882f4d0387d0451a'/>
<id>urn:sha1:5d72e9bf7e36d2398d1d794a882f4d0387d0451a</id>
<content type='text'>
This adds a variable (PYTHON_PKG_SETUP_DIR / PYTHON3_PKG_SETUP_DIR) that
allows a Python package Makefile to control the directory where setup.py
is called (as part of PyBuild/Compile/Default /
Py3Build/Compile/Default).

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
</content>
</entry>
<entry>
<title>python,python3: Fix calling default PyPackage/install</title>
<updated>2019-02-18T08:33:26Z</updated>
<author>
<name>Jeffery To</name>
<email>jeffery.to@gmail.com</email>
</author>
<published>2019-02-18T08:23:45Z</published>
<link rel='alternate' type='text/html' href='http://x-nagi.com/cgit/packages/commit/?id=200a5a2eec896b2d34f1114d14df66d810c1f4bd'/>
<id>urn:sha1:200a5a2eec896b2d34f1114d14df66d810c1f4bd</id>
<content type='text'>
This fixes Package/*/install to call PyPackage/*/install correctly.
Previously, if a package used the default PyPackage/*/install, then it
would not called. (A custom-defined PyPackage/*/install would be called
with no issue.)

Signed-off-by: Jeffery To &lt;jeffery.to@gmail.com&gt;
</content>
</entry>
</feed>
