forked from pool/python-PyYAML
Matej Cepl
b3420e1e8d
- 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
12 lines
591 B
Diff
12 lines
591 B
Diff
--- 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
|