-
Notifications
You must be signed in to change notification settings - Fork 17
Description
Making py2js setup.py installable would make it easier to try out deploy etc.
Comments
certik May 14, 2010 | link | edit | delete
That's a good idea. Where should we put the py-builtins.js and later on possibly other scripts?
panosl May 14, 2010 | link | edit | delete
distutils has two options for this.
If the *.js files are considered data it's under
package_data = {'py2js': ['data/*.js']}
http://docs.python.org/distutils/setupscript.html#installing-additional-files, where the layout might be like:
data_files = [('js': 'py-builtins.js')]
certik May 14, 2010 | link | edit | delete
Awesome, this should work. I am a bit busy today, do you think you can fix this in your branch? I'll merge it.
panosl May 14, 2010 | link | edit | delete
Which way do you wanna go though?
certik May 14, 2010 | link | edit | delete
Any way is fine with me. Choose one, it can always be changed later if it turns out that it doesn't work.
I guess that py2js.py should then somehow figure out the correct path to get the py-builtins.js, right?