script2package is a Python script which converts a single python script into a package which can then be installed via python setup.py install
.
Usage: script2package script.py --base base_folder
To extend the flexibility of this package, you can enable setup options through
providing setup.cfg
if you so desire.
You can install this package via pip
(pip install script2package
) or python setup.py install
.
A bootstrap example has been provided by running script2package script2package.py
, which will produce a self contained version within the folder package
.
A simple standalone example with no setup.cfg
file is provided in Example/add/add.py
with the generated package in Example/add/package
.
flit
is a similar Python project which aims to convert a Python script into a Python wheel file.