Address additional ansible_core rename issues (#72906)

* Update __requires__ to reference the correct ansible_core package name

* ansible-test updates to handle the correct egg_info for ansible_core
pull/52229/head
Matt Martz 4 years ago committed by GitHub
parent 57c2cc7c77
commit 6bc1e9f5dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -22,7 +22,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
__requires__ = ['ansible_base']
__requires__ = ['ansible_core']
import errno

@ -4,7 +4,7 @@
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
__requires__ = ['ansible_base']
__requires__ = ['ansible_core']
import fcntl

@ -392,12 +392,12 @@ def generate_egg_info(args):
# inclusion of the version number in the path is optional
# see: https://setuptools.readthedocs.io/en/latest/formats.html#filename-embedded-metadata
egg_info_path = ANSIBLE_LIB_ROOT + '_base-%s.egg-info' % ansible_version
egg_info_path = ANSIBLE_LIB_ROOT + '_core-%s.egg-info' % ansible_version
if os.path.exists(egg_info_path):
return
egg_info_path = ANSIBLE_LIB_ROOT + '_base.egg-info'
egg_info_path = ANSIBLE_LIB_ROOT + '_core.egg-info'
if os.path.exists(egg_info_path):
return

@ -38,6 +38,7 @@ class UnversionedSource(SourceProvider):
'__pycache__',
'ansible.egg-info',
'ansible_base.egg-info',
'ansible_core.egg-info',
)
kill_sub_dir = {

Loading…
Cancel
Save