diff --git a/Makefile b/Makefile index 2d9371762d..3af6649015 100644 --- a/Makefile +++ b/Makefile @@ -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 diff --git a/setup.py b/setup.py index 7588e50a0c..ef696c9deb 100755 --- a/setup.py +++ b/setup.py @@ -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} )