Make ld-decode into a Python package#385
Merged
happycube merged 2 commits intohappycube:rev7from Dec 26, 2019
Merged
Conversation
filtermaker is now in scripts, and deemp.h is now part of the filter library.
The modules are now all in an "lddecode" package. The scripts that are useful for end-users will be installed. I've done this with distutils.core rather than setuptools because it doesn't need any of the extra stuff setuptools provides, and distutils.core is usefully less picky about where it installs to. I've also trimmed some imports that aren't being used.
happycube
approved these changes
Dec 26, 2019
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This is definitely a "please review this" PR rather than a "merge this right now" PR!
This moves ld-decode's modules into an
lddecodepackage, and adds asetup.pyscript - if you're not a Python user, this is the standard way of describing and installing Python libraries/programs. The scripts are renamed to match the names they'll be installed under (ld-decoderather thanld-decode.py), and theimportlines are updated to use the package.ld-decode will still work directly from the source tree as before, but to install the modules and scripts, you can now do:
The
#!in the scripts will be updated to match the Python interpreter you use to run setup.py, so if you want a non-defaultpython3, use that here.I've made some arbitrary choices about module names; if you have better suggestions, let me know!
lddecode. It can't beld-decodebecause it has to be a valid identifier, and the name would collide with the script;ld_decodewould be legal but unusual.lddecode_core->lddecode.corelddutils->lddecode.utilsld_utils->lddecode.plot_utils(??)foo->lddecode.foo@oyvindln: this will need some matching changes to the imports in your VHS fork when you merge it, but it should be the same as I've done for the ld-decode scripts here. The VHS modules could go into an
lddecode.vhspackage?Fixes #70.