django - Is there an easier way to package with Python? -


i tried package django app today. it's big baby, , setup file, have manually write packages , sub packages in 'package' parameter. have find way copy fixtures, htmls / css / image files, documentations, etc.

it's terrible way work. computer scientists, automatize, doing makes no sense.

and when change app structure ? have rewrite setup.py.

is there better way ? tool automate ? can't believe language value developer time python makes packaging such chore.

i want able install app using simple pip install. know build out, it's not simpler, , not pip friendly.

at least if use setuptools (an alternative stdlib's distutils) awesome function called find_packages() when ran package root returns list of package names in dot-notation suitable packages parameter.

here example:

# setup.py  setuptools import find_packages, setup  setup(     #...     packages=find_packages(exclude='tests'),     #... ) 

p.s. packaging sucks in every language , every system. sucks no matter how slice it.


Comments

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -

PostgreSQL 9.x - pg_read_binary_file & inserting files into bytea -