diff --git a/Makefile b/Makefile index d429864050..1b861e2743 100644 --- a/Makefile +++ b/Makefile @@ -269,7 +269,7 @@ api-lint: yamllint -s . awx-link: - [ -d "/awx_devel/awx.egg-info" ] || $(PYTHON) /awx_devel/tools/scripts/setup.py egg_info_dev + [ -d "/awx_devel/awx.egg-info" ] || $(PYTHON) /awx_devel/tools/scripts/egg_info_dev cp -f /tmp/awx.egg-link /var/lib/awx/venv/awx/lib/$(PYTHON)/site-packages/awx.egg-link TEST_DIRS ?= awx/main/tests/unit awx/main/tests/functional awx/conf/tests awx/sso/tests diff --git a/tools/scripts/setup.py b/tools/scripts/egg_info_dev similarity index 69% rename from tools/scripts/setup.py rename to tools/scripts/egg_info_dev index ea8167166d..3033a387f0 100755 --- a/tools/scripts/setup.py +++ b/tools/scripts/egg_info_dev @@ -1,5 +1,4 @@ -# This file only exists for the purposes of generating the development environment's awx.egg-info file -# because pip install -e is painfully slow. If anyone finds a better way to do this, I'll buy you a drink. +#!/bin/env python3 import setuptools from setuptools.command.egg_info import egg_info as _egg_info @@ -16,5 +15,7 @@ class egg_info_dev(_egg_info): if __name__ == "__main__": setuptools.setup( + script_name = 'setup.py', + script_args = ['egg_info_dev'], cmdclass={'egg_info_dev': egg_info_dev}, )