1
0
mirror of https://github.com/ansible/awx.git synced 2024-10-26 16:25:06 +03:00

speed up .egg-info generation on certain systems

This commit is contained in:
Ryan Petrello 2020-05-19 15:00:13 -04:00
parent bfdd136a46
commit 296995e8bd
No known key found for this signature in database
GPG Key ID: F2AA5F2122351777
2 changed files with 13 additions and 1 deletions

View File

@ -354,7 +354,7 @@ swagger: reports
check: flake8 pep8 # pyflakes pylint
awx-link:
python3 /awx_devel/setup.py egg_info
[ -d "/awx_devel/awx.egg-info" ] || python3 /awx_devel/setup.py egg_info_dev
cp -f /tmp/awx.egg-link /venv/awx/lib/python$(PYTHON_VERSION)/site-packages/awx.egg-link
TEST_DIRS ?= awx/main/tests/unit awx/main/tests/functional awx/conf/tests awx/sso/tests

View File

@ -7,6 +7,7 @@ import os
import glob
import sys
from setuptools import setup
from setuptools.command.egg_info import egg_info as _egg_info
# Paths we'll use later
@ -77,6 +78,16 @@ def proc_data_files(data_files):
result.append((dir, includes))
return result
class egg_info_dev(_egg_info):
def find_sources(self):
# when we generate a .egg-info for the development
# environment, it's not really critical that we
# parse the MANIFEST.in (which is actually quite expensive
# in Docker for Mac)
pass
#####################################################################
@ -143,4 +154,5 @@ setup(
'executable': '/usr/bin/awx-python',
},
},
cmdclass={'egg_info_dev': egg_info_dev}
)