mirror of
https://github.com/ansible/awx.git
synced 2026-02-01 09:38:10 -03:30
update isolated task execution for ansible-runner
This commit is contained in:
committed by
chris meyers
parent
8fb65b40de
commit
602ef9750f
36
setup.py
36
setup.py
@@ -40,38 +40,6 @@ else:
|
||||
# The .spec will create symlinks to support multiple versions of sosreport
|
||||
sosconfig = "/usr/share/sosreport/sos/plugins"
|
||||
|
||||
#####################################################################
|
||||
# Isolated packaging
|
||||
#####################################################################
|
||||
|
||||
|
||||
class sdist_isolated(sdist):
|
||||
includes = [
|
||||
'include VERSION',
|
||||
'include Makefile',
|
||||
'include awx/__init__.py',
|
||||
'include awx/main/expect/run.py',
|
||||
'include tools/scripts/awx-expect',
|
||||
'include requirements/requirements_isolated.txt',
|
||||
'recursive-include awx/lib *.py',
|
||||
]
|
||||
|
||||
def __init__(self, dist):
|
||||
sdist.__init__(self, dist)
|
||||
dist.metadata.version = get_version()
|
||||
|
||||
def get_file_list(self):
|
||||
self.filelist.process_template_line('include setup.py')
|
||||
for line in self.includes:
|
||||
self.filelist.process_template_line(line)
|
||||
self.write_manifest()
|
||||
|
||||
def make_release_tree(self, base_dir, files):
|
||||
sdist.make_release_tree(self, base_dir, files)
|
||||
with open(os.path.join(base_dir, 'MANIFEST.in'), 'w') as f:
|
||||
f.write('\n'.join(self.includes))
|
||||
|
||||
|
||||
#####################################################################
|
||||
# Helper Functions
|
||||
|
||||
@@ -160,12 +128,10 @@ setup(
|
||||
"tools/scripts/awx-python",
|
||||
"tools/scripts/ansible-tower-setup"]),
|
||||
("%s" % sosconfig, ["tools/sosreport/tower.py"])]),
|
||||
cmdclass = {'sdist_isolated': sdist_isolated},
|
||||
options = {
|
||||
'aliases': {
|
||||
'dev_build': 'clean --all egg_info sdist',
|
||||
'release_build': 'clean --all egg_info -b "" sdist',
|
||||
'isolated_build': 'clean --all egg_info -b "" sdist_isolated',
|
||||
'release_build': 'clean --all egg_info -b "" sdist'
|
||||
},
|
||||
'build_scripts': {
|
||||
'executable': '/usr/bin/awx-python',
|
||||
|
||||
Reference in New Issue
Block a user