Skip to content

setup.py #2

@certik

Description

@certik

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.

  1. http://docs.python.org/distutils/setupscript.html#installing-package-data

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions