In my python project, there is another python project s2p downloaded as a git submodule. How can I install my project and only the s2p folder in s2p project without running s2p/setup.py in s2p project.
Eg:
myproject
- setup.py
- mypackage
- __init__.py
- s2p
- setup.py
- s2p
- __init__.py
- many other files ...
As you can see, there are two setup.py in myproject/ folder. One is the setup.py of myproject and another setup.py is in a git-submodule s2p.
The myproject/setup.py looks like:
packages=(find_packages(include=["mypackage.*"]) + find_packages(where="./s2p/s2p")),
Explanation: I want it to install mypackage and only the folder s2p under s2p submodule without using s2p/setup.py.
Installation: the following is run
~/myproject$ pip install -e .
But s2p is still not installed correctly:
$ python
>>> import s2p
>>> print(s2p.__file__)
None
Note: the myproject/setup.py installs all required packages to run s2p.