for the sake of the question, let's assume that under one git repository, I'm developing 2 independent packages. Consider the following structure:
my_repo/
package1/
...some modules
package2/
...some modules
setup.py
setup.py code is:
from setuptools import setup
setup(
name='Cool_package',
version=1.0,
description='...',
author='Myself',
packages=['package1', 'package2'],
install_requires=[
...
]
)
I'm using this command to install the packages in desired manner (avoiding python setup.py install or develop):
pip install -e .
And both package1 and package2 are installed.
My question is there a way to install only one of the two (user decides which one), considering that mentioned above structure requires them to share one setup.py file?
Again, I'm aware of that structure is not ideal (ideally I would split the packages into 2 separated repos).
Many thanks in advance!