BSD Ports

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

SystemPortVersion
FreeBSDmath/py-random21.0.2
DragonFlymath/py-random21.0.1_1
MidnightBSDmath/py-random21.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.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.0.21.0.21.0.11.0.1_11.0.2
FreeBSD:14:quarterly1.0.21.0.2n/a1.0.1_11.0.2
FreeBSD:15:latest1.0.21.0.2n/a1.0.1_11.0.1_1
FreeBSD:15:quarterly1.0.21.0.2n/an/an/a
FreeBSD:16:latest1.0.21.0.2n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 2

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
FileSizeSHA256
random2-1.0.2.tar.gz180953754fcef48267567cd5705fa7da6bbc3809cb3f808740313e6705acc3c057e77
Master sites 1
  • PYPI

Commit history 1

DateCommitCreditsLog message
0fa523bf3d Kai Knoblich math/py-random2: Update to 1.0.2
* Switch to the PEP517 build framework to make the port future-proof. * Update WWW to point to actual upstream repository to get some more info about its activity. Changelog: https://github.com/strichter/random2/compare/1.0.1...1.0.2