mirror of
https://github.com/actions/python-versions.git
synced 2025-04-06 15:29:39 +00:00
Remove tests for deprecated libraries (#229)
This commit is contained in:
@ -1,6 +1,4 @@
|
||||
import distutils.sysconfig
|
||||
import sysconfig
|
||||
|
||||
from pprint import pprint
|
||||
pprint(sysconfig.get_config_vars())
|
||||
pprint(distutils.sysconfig.get_config_vars())
|
@ -1,5 +1,3 @@
|
||||
import distutils.sysconfig
|
||||
from distutils.version import LooseVersion
|
||||
import sysconfig
|
||||
import sys
|
||||
import platform
|
||||
@ -55,7 +53,7 @@ else:
|
||||
### Validate macOS
|
||||
if os_type == 'Darwin':
|
||||
### Validate openssl links
|
||||
if LooseVersion(nativeVersion) < LooseVersion("3.7.0"):
|
||||
if version_major == 3 and version_minor < 7:
|
||||
expected_ldflags = '-L/usr/local/opt/openssl@1.1/lib'
|
||||
ldflags = sysconfig.get_config_var('LDFLAGS')
|
||||
|
||||
|
@ -266,7 +266,10 @@ if sys.version_info >= (3, 11):
|
||||
standard_library.remove('binhex')
|
||||
|
||||
# 'smtpd', 'asyncore' and 'asynchat' modules have been removed from Python 3.12
|
||||
# https://docs.python.org/dev/whatsnew/3.12.html
|
||||
if sys.version_info >= (3, 12):
|
||||
standard_library.remove('distutils')
|
||||
standard_library.remove('imp')
|
||||
standard_library.remove('smtpd')
|
||||
standard_library.remove('asyncore')
|
||||
standard_library.remove('asynchat')
|
||||
|
Reference in New Issue
Block a user