A command-line tool for linking Lua projects into a single file
Project description
PyLuaLinker
A python utility for linking LUA source files into one LUA file.
currently no builds available, to use download and run build.ps1 (currently no cross-platform support)
How-To:
setting up a new project:
Run:
PyLuaLinker new [path]
to initialize a new project at [path].
The result should look like this:
[path]/
├── src
└── buildscript.json
buildscript.json defines your application name, entry point and any source directories.
{
"app_name": "",
"entry_point": "",
"src_dir": [""]
}
key | description: |
---|---|
"app_name": |
is the name of the file created by the linker |
"entry_point": |
is the name of your main source file |
"src_dir": |
is a list of paths (absolute or relative) to all required LUA source files |
for an example look at the example implementation
marking import statements
To mark a require()
statement for static linking, comment --> static
in the same line.
Other types of import statement are currently not supported.
This allows for hybrid static / dynamic importing and for your source program to be either run conventionally or linked without modification.
building a project:
To link your project enter
PyLuaLinker build [buildscript.json]
Contributing;
This repository is open for issues and merge requests, but since I made this on a whim, I might drop support at any time.
If I ever stop responding, remember that all code written for this project is licensed GPLv3, so you can always copy it and make changes for yourself.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for pylualinker-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | cf6f51f5bdf69dcd741814b105fa537cb01e035f4c2af3b60eb9f95a3ae04646 |
|
MD5 | fb2805968ea9d5057bd6d87253fa12af |
|
BLAKE2b-256 | f6fdde9cf4b343ddd7c1c5fa04419ba82ac789e3b8b2a4160737bcc2a83a53fa |