Is it possible to use dynamic configuration in a setup.py?
I have a python app which is a collection of scripts to make requests to a backend api. I would like to dynamically customise the scripts which are installed, possibly by passing a flag to the pip install command.
An example setup.py
from setuptools import setup, find_packages
setup(
name='my-app',
version='0.0.1',
packages=find_packages(),
scripts=['bin/do_stuff',
'bin/do_other_stuff'
],
)
I would like to dynamically modify the contents of 'scripts', to add additional paths, based on an install flag.
Is this possible?