devel/py-random2 1.0.2 NetBSD
Python 3 compatible port of Python 2 random module
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- python-software-foundation
- Categories
- devel, python
- Package size
- 23.0 KiB, 104.0 KiB installed
Description
This package 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 |
|---|---|---|
| NetBSD | devel/py-random2 | 1.0.2 |
| DragonFly | math/py-random2 | 1.0.1_1 |
Install
Binary package:
pkgin install py311-random2
From pkgsrc:
cd /usr/pkgsrc/devel/py-random2 && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 1.0.2 |
| NetBSD 10.1 aarch64 | 1.0.2 |
| SmartOS / illumos x86_64 | 1.0.2 |
| macOS 15 arm64 | 1.0.2 |
Dependencies
Run dependencies 1
No port depends on this one.
Configuration
No options to configure.
- Service scripts
- none
- Flavors
py312-random2-1.0.2,py313-random2-1.0.2,py314-random2-1.0.2