Merge pull request #7087 from ryanpetrello/egg-info-speedup

speed up .egg-info generation on certain systems

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2020-05-19 20:17:26 +00:00 committed by GitHub
commit a2e5639128
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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}
)