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:
parent
bfdd136a46
commit
296995e8bd
2
Makefile
2
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
|
||||
|
12
setup.py
12
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}
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user