Port details on branch 2022Q2 |
- py-xdis Cross-Python bytecode Disassembler and Marshal routines
- 6.1.0 devel =0 6.0.5Version of this port present on the latest quarterly branch.
- Maintainer: sunpoet@FreeBSD.org
- Port Added: 2018-01-21 16:09:50
- Last Update: 2024-03-31 03:06:53
- Commit Hash: 48e5770
- Also Listed In: python
- License: GPLv2+
- WWW:
- https://github.com/rocky/python-xdis
- Description:
- The Python dis module allows you to disassemble bytecode from the same version
of Python that you are running on. But what about bytecode from different
versions?
That's what this package is for. It can "marshal load" Python bytecodes from
different versions of Python. The command-line routine pydisasm will show
disassembly output using Python 3.6 disassembly conventions.
Also, if you need to modfiy and write bytecode, the routines here can be of
help. There are routines to pack and unpack the read-only tuples in Python's
Code type. For interoperability between Python 2 and 3 we provide our own
versions of the Code type, and we provide routines to reduce the tedium in
writing a bytecode file.
This package also has an extensive knowledge of Python bytecode magic numbers,
including Pypy and others, and how to translate from sys_info major, minor, and
release numbers to the corresponding magic value.
So If you want to write a cross-version assembler, or an bytecode-level
optimizer this package may also be useful. In addition to the kinds of
instruction categorization that dis offers, we have additional categories for
things that would be useful in such a bytecode optimizer.
- ¦ ¦ ¦ ¦
- Manual pages:
- FreshPorts has no man page information for this port.
- pkg-plist: as obtained via:
make generate-plist - There is no configure plist information for this port.
- Dependency lines:
-
- ${PYTHON_PKGNAMEPREFIX}xdis>0:devel/py-xdis@${PY_FLAVOR}
- To install the port:
- cd /usr/ports/devel/py-xdis/ && make install clean
- To add the package, run one of these commands:
- pkg install devel/py-xdis
- pkg install py39-xdis
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py39-xdis listed in the above command, you can pick from the names under the Packages section.- PKGNAME: py39-xdis
- Package flavors (<flavor>: <package>)
- distinfo:
- TIMESTAMP = 1711466194
SHA256 (xdis-6.1.0.tar.gz) = 355fd36db210e9117167e0821e2bcc12ac3da8bcc15d52e1542ad422ad2629cc
SIZE (xdis-6.1.0.tar.gz) = 401813
Packages (timestamps in pop-ups are UTC):
- Dependencies
- NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered.
- Build dependencies:
-
- py39-setuptools>=61.2 : devel/py-setuptools@py39
- py39-wheel>=0 : devel/py-wheel@py39
- python3.9 : lang/python39
- py39-build>=0 : devel/py-build@py39
- py39-installer>=0 : devel/py-installer@py39
- Test dependencies:
-
- py39-pytest>=0 : devel/py-pytest@py39
- python3.9 : lang/python39
- Runtime dependencies:
-
- py39-click>=0 : devel/py-click@py39
- py39-pygments>=0 : textproc/py-pygments@py39
- py39-six>=1.10.0 : devel/py-six@py39
- py39-term-background>=1.0.1 : deskutils/py-term-background@py39
- python3.9 : lang/python39
- There are no ports dependent upon this port
Configuration Options:
- No options to configure
- Options name:
- devel_py-xdis
- USES:
- python
- FreshPorts was unable to extract/find any pkg message
- Master Sites:
|