mirror of
https://github.com/clearlinux/autospec.git
synced 2026-08-22 07:08:04 +00:00
Change default python buildpattern to distutils3
Change default python buildpattern from distutils23 (both python2 and python3) to distutils3 (python3 only). This is a step toward deprecating python2 usage in distro packages. Any packages that rely on python2 should have "distutils23" added to the build_pattern configuration file to maintain their python2 subpackage (or, preferrably, built with python3 only as is default). Signed-off-by: Matthew Johnson <matthew.johnson@intel.com>
This commit is contained in:
+1
-2
@@ -259,9 +259,8 @@ def detect_build_from_url(url):
|
||||
|
||||
# python
|
||||
if "pypi.python.org" in url or "pypi.debian.net" in url:
|
||||
buildpattern.set_build_pattern("distutils23", 10)
|
||||
buildpattern.set_build_pattern("distutils3", 10)
|
||||
buildreq.add_buildreq("python3-dev")
|
||||
buildreq.add_buildreq("python-dev")
|
||||
|
||||
# cpan
|
||||
if ".cpan.org/" in url or ".metacpan.org/" in url:
|
||||
|
||||
Reference in New Issue
Block a user