Replies: 1 comment
-
Hi @shareefj, I believe that it would look like: ...
[tool.setuptools]
packages = [
"b",
# Manually list all the packages and subpackages you want included (i.e. folders, not individual .py files)
# "b.b1",
# "b.b1.b2",
# ...
]
package-dir = { "" = "src" } without the |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
I'm using an external dependency to our project that is NOT a Python package. There is a certain level of hierarchy that I'd like to install as a package so I've been looking at options for adding a pyproject.toml or setup.py to the repo in order to do this. I seem to have totally failed to find the correct setuptools options but have it working with poetry and I just want to understand what I'm doing wrong.
The directory structure is something like this:
Only directory
b
has the Python that I want to install as a package and I can do this with Poetry using the following pyproject.toml:If I do the same with what I think are the correct setuptools commands I get a virtualenv populated with all the directories that have any Python files in. Including the
src
directory.I've tried what feels like every possible combination but something like the following is what I thought should work from the examples and documentation I've read:
What is the setuptools equivalent of that one poetry line?
Beta Was this translation helpful? Give feedback.
All reactions