Skip to content

Building a .whl with package discovery find_packages() #2695

Answered by webknjaz
jmachcse asked this question in Q&A
Discussion options

You must be logged in to vote

What sort of layout do you need? You could use py_modules=['main'] to get that main.py installed right in the root of site-packages/. But This seems wrong. I'd recommend putting it into the package (a folder with __init__.py)

Also, where="mypkg", seems weird. It's usually src/ but then, this dir usually lives in the project root. What are you trying to achieve with this layout?

FWIW try going through https://packaging.python.org/tutorials/packaging-projects/.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jmachcse
Comment options

@webknjaz
Comment options

@jmachcse
Comment options

Answer selected by jmachcse
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants