devel/py-xasm 1.2.2_1 FreeBSD
Python cross-version byte-code assembler
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
07d6a589eb- License
- GPLv2
- Categories
- devel, python
- Package size
- 42.0 KiB, 173.5 KiB installed
Description
The Python xasm module has routines for assembly, and has a command to assemble bytecode for several different versions of Python.
Here are some potential uses:
- Make small changes to existing Python bytecode when you don't have source
- Craft custom and efficient bytecode
- Write an instruction-level optimizing compiler
- Experiment with and learn about Python bytecode
- Foil decompilers like uncompyle6 so that they can't disassemble bytecode (at least for now)
This support the same kinds of bytecode that xdis supports. This is pretty much all released bytecode, although we tend to lag behind the latest Python releases.
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/py-xasm | 1.2.2_1 |
| DragonFly | devel/py-xasm | 1.2.0 |
Install
Binary package:
pkg install py312-xasm
From the ports tree:
cd /usr/ports/devel/py-xasm/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-xasm>0:devel/py-xasm
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.2.2_1 | 1.2.2_1 | - | 1.2.0 | 1.2.2_1 |
| FreeBSD:14:quarterly | 1.2.2_1 | 1.2.2_1 | n/a | 1.2.0 | 1.2.2_1 |
| FreeBSD:15:latest | 1.2.2_1 | 1.2.2_1 | n/a | 1.2.0 | 1.2.0 |
| FreeBSD:15:quarterly | 1.2.2_1 | 1.2.2_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.2.2_1 | 1.2.2_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 2
${PYTHON_PKGNAMEPREFIX}setuptools>=0: devel/py-setuptools${PYTHON_PKGNAMEPREFIX}wheel>=0: devel/py-wheel
Runtime 2
${PYTHON_PKGNAMEPREFIX}click>=0: devel/py-click${PYTHON_PKGNAMEPREFIX}xdis>=6.3.0: devel/py-xdis
The full lists below include those, and their dependencies in turn.
Build dependencies 16
Run dependencies 10
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| xasm-1.2.2.tar.gz | 45153 | d809552faaec612d1173533702625ae617e656e6ee0484880f7cfd5831087380 |
Master sites 2
- PYPI
- https://github.com/rocky/python-xasm/releases/download/1.2.2/