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
This commit is contained in:
parent
57c2cc7c77
commit
6bc1e9f5dd
4 changed files with 5 additions and 4 deletions
|
@ -22,7 +22,7 @@
|
||||||
from __future__ import (absolute_import, division, print_function)
|
from __future__ import (absolute_import, division, print_function)
|
||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
|
|
||||||
__requires__ = ['ansible_base']
|
__requires__ = ['ansible_core']
|
||||||
|
|
||||||
|
|
||||||
import errno
|
import errno
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
from __future__ import (absolute_import, division, print_function)
|
from __future__ import (absolute_import, division, print_function)
|
||||||
|
|
||||||
__metaclass__ = type
|
__metaclass__ = type
|
||||||
__requires__ = ['ansible_base']
|
__requires__ = ['ansible_core']
|
||||||
|
|
||||||
|
|
||||||
import fcntl
|
import fcntl
|
||||||
|
|
|
@ -392,12 +392,12 @@ def generate_egg_info(args):
|
||||||
|
|
||||||
# inclusion of the version number in the path is optional
|
# inclusion of the version number in the path is optional
|
||||||
# see: https://setuptools.readthedocs.io/en/latest/formats.html#filename-embedded-metadata
|
# 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):
|
if os.path.exists(egg_info_path):
|
||||||
return
|
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):
|
if os.path.exists(egg_info_path):
|
||||||
return
|
return
|
||||||
|
|
|
@ -38,6 +38,7 @@ class UnversionedSource(SourceProvider):
|
||||||
'__pycache__',
|
'__pycache__',
|
||||||
'ansible.egg-info',
|
'ansible.egg-info',
|
||||||
'ansible_base.egg-info',
|
'ansible_base.egg-info',
|
||||||
|
'ansible_core.egg-info',
|
||||||
)
|
)
|
||||||
|
|
||||||
kill_sub_dir = {
|
kill_sub_dir = {
|
||||||
|
|
Loading…
Reference in a new issue