New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Run script #10
Run script #10
Conversation
I forgot to mention, this commit addresses Issue #7. |
Thanks again for great contributions! :) I'm a bit apprehensive about moving everything into pyjaco/jslib, however. As it is now, pyjaco/ is the python module root dir, and library/ is a data dir containing all the javascript files. Having javascript files in the python module dir irks me. I think we have to settle for another location. What can we do with regards to pypi? Can we name a data dir that will be copied somewhere? How does it work? By the way, I agree completely that the debian package should simply use the pypi infrastructure. The other python-* debian packages already do this, I just created a quick-and-dirty debian package because we needed it. Other than the data placement issues, this looks awesome. I can't wait to merge it. |
I'm not a distutils guru by any means, but my research suggests the While distutils does supply a data_files option, it does not seem The advantages of pkg_data are summarized here: As far as I can tell, if the python code needs to access the file, http://docs.python.org/distutils/setupscript.html#installing-package-data If you wish to keep the directories separate, we could have two separate Additionally, I found out that I should have been using pkg_resources to On 06/01/12 12:37 PM, Christian Iversen wrote:
|
This commit also moves the library into the pyjaco package to ease distribution via setup.py. NOTE: This is a rewrite of a previous commit where the library had been moved to pyjaco/jslib instead of pyjaco/stdlib
… should make the package much more cooperative when distributed as an egg.
As per our discussion via jabber, I have rewritten this commit to put the files in pyjaco/stdlib instead of pyjaco/jslib, and have added a commit to load the files using pkg_resources instead of file, thus allowing the distribution to be shipped as a compressed egg. |
* Extensive improvements to pyjs.py and source tree layout (buchiki)
Merge (rewrite) the generate_library.py into pyjs.py
This commit also moves the library into the pyjaco package to ease distribution via setup.py.
The output of the new generate script is not quite identical to the output of the original. I passed it through vimdiff and found the following:
The second commit is a bug I discovered in testing. The parser was not able to error because there was no reference to the parser. Moving the parser to a global was a quick fix, there should probably a bit more object orientation in this script, eventually.
I am going to make a few further changes that will likely end up on this same pull request (unless you happen merge it ahead of me):