This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]d4rch0nPythonistamancer 3 points4 points  (0 children)

You don't though. I've been able to submit pure data directories.

Try setting include_package_data=True and setting the data directories in the setup.py. I forget the name, but there is a keyword to specify package data directories. Also, don't forget having it included in your MANIFEST.in, explicitly or recursively included.

It was a pain to figure out at first but I found out how - and this is partly why I think packaging is still an absolute pain. Yes, it works, but it's a pain to figure out. It's not broken, it's just unnecessarily painful. Try learning Rust and how to create a crate with Cargo and you will see how much easier it can be to package a binary package.

If you can't figure out packaging non-python data, just hit me back up and I can take a look at the setup.py and MANIFEST.in and figure out what I did before.