A python based package manager that builds programs from source
Project description
Description
Pakit is a small python based package manager that builds programs from source.
Pakit provides:
A package manager interface to install, remove & update programs.
A simple Recipe specification to build programs from source code.
Premade and tested recipes maintained by pakit.
When you install a program Pakit will…
download the source into a silo in pakit.paths.source and build it.
install the program into a silo under pakit.paths.prefix.
link the silo to the pakit.paths.link directory.
Want a longer explanation? See the Overview section.
Demo
The following demonstration covers most of the basic functions.
Try the demo yourself after installing pakit.
Install Pakit
To use pakit:
Ensure you have a build environment for compiling the programs.
Fetch pakit via pip or github.
Modify your $PATH.
Build Environment
At this point pakit has two limitations to be aware of:
Relies on user’s build environment.
Pakit recipes can only depend on things pakit can build, currently limited pool. User needs to install any dependencies pakit can’t build.
To use pakit, I suggest you have…
c++ build environment
git
mercurial
anything a recipe depends on that pakit can’t build
For Ubuntu install these packages:
sudo apt-get install build-essential automake autoconf python-pip git mercurial liblzma-dev libevent-dev ncurses-dev
Github
Fetch the latest from the source. Works unless the build badge says failing.
git clone https://github.com/starcraftman/pakit.git
export PATH=$(pwd)/pakit/bin:$PATH
python pakit/setup.py deps release
pip
Install the latest stable pip release. It might be old but working.
sudo -H pip install pakit
PATH
By default, pakit will install programs under pakit.paths.prefix and link everything to pakit.paths.link. To use the built programs, pakit.paths.link/bin must be on your $PATH. So for example, with the default value of pakit.paths.link, you would need to:
export PATH=/tmp/pakit/links/bin:$PATH
The above exports will only last for the terminal session. To make them permanent for bash, edit $HOME/.bashrc or $HOME/.bash_aliases.
More Information
>From inside the pakit source folder:
Help: pakit --help
Consult man: man pakit
Read pydocs: pydoc pakit or pydoc pakit.shell and so on…
Install all development packages: python setup.py deps
Run the test suite: tox
See Waffle for things I’m working on.
Read DESIGN.md for details on design. A bit out of date.
Contributors
Jeremy Pallats/starcraft.man (that is me)
Overview
Basically I want to make a universal package manager on python. Runs everywhere, builds anything and handles dependencies. A bit like a meta build tool tying arbitrary recipes together. At the end of the day, will probably resemble Homebrew at least a little.
Importantly, the recipes should be configurable via a single YAML file that users can modify without changing the recipes. Say you want to pass particular flags to the vim or ag build, you’d just put them in an entry in the config.
Expected Feature Overview:
Python only, with minimal dependencies.
Package manager interface, install remove and update recipes.
100% tested, framework & supported recipes.
Should work on any POSIX system, emphasis on Linux.
Simple recipe specification.
Configuration via a single YAML file.
Available via pip.
Traceability via logs for every command.
Premade & tested recipes available for use.
See DESIGN.md for more details.
Roadmap
For accurate plan, see waffle.io link above. Just a rough guess of what I should be implementing when.
0.1
[x] Implement basic tasks to install & remove ‘ag’ program.
[x] Support Git & Hg repositories.
[x] Simple config from .pakit.yml.
[x] Upgrade logic.
[x] User defined recipe locations via config.
[x] Pick a license.
[x] Pip/Wheel upload.
0.2
[x] Add archive support, supports download, hashing & extracting.
[x] Tar (tarfile)
[x] Zip (zipfile)
[x] tar.xz (xz command)
[x] Rar (rar command)
[x] 7z (7z command)
[x] Add list & searching support.
[x] Python 3 support
[x] Better error handling, rollback
[x] Improve Command, timeout & input file
[x] Investigate alternatives/improvements to RecipeDB
0.3
[ ] Make a website and promote. Maybe use github pages.
[x] Dependency logic between recipes tasks.
[x] Research best approach & do small design.
[x] Create Digraph Structure (likely required).
[x] Create Recipe specification & implement.
[ ] Handle missing commands inside recipes. For example, recipe needs git but git unavailable.
[x] Separate recipes from pakit core.
[ ] Move to pakit/pakit. pakit
0.4
[ ] Parallelism, envisioned as some task based dependency.
Beyond
[ ] Create tool to convert homebrew ruby formula. Maybe?
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 Distributions
Built Distribution
File details
Details for the file pakit-0.2.5.zip
.
File metadata
- Download URL: pakit-0.2.5.zip
- Upload date:
- Size: 59.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97de6f9e6c3c3cefc2cf5a01fc083a003d9b4ddd5ebae09f677ab43b25c66257 |
|
MD5 | fd0aecfd586b14783e5f5b51272b3a59 |
|
BLAKE2b-256 | feb4de1c54a55c5405f2bc88032e5963e6aec60f9c36145cc209aa6ff4b26ab6 |
File details
Details for the file pakit-0.2.5.tar.gz
.
File metadata
- Download URL: pakit-0.2.5.tar.gz
- Upload date:
- Size: 45.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 606b9c9bdca62c2d6efcbb84f5caea2c3c3bfb5457768d6f214765413002197c |
|
MD5 | 3bd707660cd19cc89063e92f4e784519 |
|
BLAKE2b-256 | 46415d0561bb5f0da185f94a9dec77d827f0a0bbab24b0709c065ab97916a95b |
File details
Details for the file pakit-0.2.5-py2.py3-none-any.whl
.
File metadata
- Download URL: pakit-0.2.5-py2.py3-none-any.whl
- Upload date:
- Size: 48.5 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 34ee6111138f5c64e1cee5feea007cbb36afb886528766e224f020129c218ea4 |
|
MD5 | 39736b336959910393cbcca93b73d7a7 |
|
BLAKE2b-256 | a0616780a82a5c9365101634e2d2e4350b31bb973f3bbaa4959c1fa2b92d02ee |