dukpy icon indicating copy to clipboard operation
dukpy copied to clipboard

setuptools...

Open goschtl opened this issue 7 years ago • 1 comments

Hi,

is (and how) it possible to specify my js-requirements in setup.py. Do you have a simple example for that? Is there a hook or something i can register the install_jspackage in an smart way.

thanks in advance

goschtl avatar Aug 01 '16 06:08 goschtl

While I usually tend to distribute the js_vendor directory as a package resource it should be possible to have the JS dependencies downloaded at install time by relying on setup_requires feature of setuptools.

DukPY would be able to register a distutils extension through it and install the dependencies provided by a specific setup() option. See http://setuptools.readthedocs.io/en/latest/setuptools.html#adding-setup-arguments

If anyone is willing to contribute this I'll gladly review and accept it, currently it's not a priority for me as I prefer distributing JS dependencies as package resources.

amol- avatar Aug 07 '16 13:08 amol-