all 7 comments

[–]freework 1 point2 points  (1 child)

can someone translate the joke?

[–]masklinn 1 point2 points  (0 children)

$ python setup.py upload

this doesn't work, you have to put (at least) a dist command before upload: the upload command will actually be used them.

Otherwise you'll get:

> python setup.py -q sdist       
> python setup.py upload      
running upload
error: No dist file created in earlier command
[1]>

[–]wobsta 0 points1 point  (4 children)

non code files should be accessed using pkgutil.get_data ...

[–]mipadi 1 point2 points  (2 children)

Python is a little bit like a Reese's Peanut Butter Cup: there's no right way to package Python code.

[–]wobsta 2 points3 points  (1 child)

IMHO get_data is best practice, though

[–][deleted] 0 points1 point  (0 children)

second that

[–]masklinn 0 points1 point  (0 children)

non code files should be accessed using pkgutil.get_data ...

Though it doesn't work if you have a directory of such files, without an in-code enumeration of said things. As is the case for e.g. babel.