forked from pool/python-PyYAML
Accepting request 933309 from home:tinita:branches:devel:languages:python
- Add patch setuptools.patch - update to 6.0 * drop Python 2.7 * always require `Loader` arg to `yaml.load()` * fix float resolver to ignore `.` and `._` * fix representation of Enum subclasses * fix libyaml extension compiler warnings * fix ResourceWarning on leaked file descriptors * remove remaining direct distutils usage OBS-URL: https://build.opensuse.org/request/show/933309 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-PyYAML?expand=0&rev=44
This commit is contained in:
11
setuptools.patch
Normal file
11
setuptools.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- PyYAML-6.0/setup.py 2021-10-13 21:13:52.000000000 +0200
|
||||
+++ PyYAML-6.0/setup.py.new 2021-11-03 14:36:40.093725379 +0100
|
||||
@@ -67,7 +67,7 @@
|
||||
import sys, os, os.path, pathlib, platform, shutil, tempfile, warnings
|
||||
|
||||
# for newer setuptools, enable the embedded distutils before importing setuptools/distutils to avoid warnings
|
||||
-os.environ['SETUPTOOLS_USE_DISTUTILS'] = 'local'
|
||||
+#os.environ['SETUPTOOLS_USE_DISTUTILS'] = 'local'
|
||||
|
||||
from setuptools import setup, Command, Distribution as _Distribution, Extension as _Extension
|
||||
from setuptools.command.build_ext import build_ext as _build_ext
|
||||
Reference in New Issue
Block a user