Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pylualinker-0.1.0.tar.gz (5.6 MB view hashes)

Uploaded Source

Built Distribution

pylualinker-0.1.0-py3-none-any.whl (20.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page