math/py-random2 1.0.2 FreeBSD
Python 3 compatible Python 2 random module
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- Last update
- Commit
0fa523bf3d- License
- PSFL
- Categories
- math, python
- Package size
- 23.7 KiB, 97.5 KiB installed
Description
Provides a Python 3 ported version of Python 2.7's 'random' module. It has also been back-ported to work in Python 2.6.
In Python 3, the implementation of randrange() was changed, so that even with the same seed you get different sequences in Python 2 and 3. Note that several high-level functions such as randint() and choice() use randrange().
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | math/py-random2 | 1.0.2 |
| DragonFly | math/py-random2 | 1.0.1_1 |
| MidnightBSD | math/py-random2 | 1.0.1_1 |
Install
Binary package:
pkg install py312-random2
From the ports tree:
cd /usr/ports/math/py-random2/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-random2>0:math/py-random2
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.0.2 | 1.0.2 | 1.0.1 | 1.0.1_1 | 1.0.2 |
| FreeBSD:14:quarterly | 1.0.2 | 1.0.2 | n/a | 1.0.1_1 | 1.0.2 |
| FreeBSD:15:latest | 1.0.2 | 1.0.2 | n/a | 1.0.1_1 | 1.0.1_1 |
| FreeBSD:15:quarterly | 1.0.2 | 1.0.2 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.0.2 | 1.0.2 | 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
The full lists below include those, and their dependencies in turn.
Build dependencies 16
Run dependencies 7
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| random2-1.0.2.tar.gz | 18095 | 3754fcef48267567cd5705fa7da6bbc3809cb3f808740313e6705acc3c057e77 |
Master sites 1
- PYPI