1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-15 07:56:36 +00:00

devel/py-memory-allocator: Adding an extension class to allocate memory easily with cython

This commit is contained in:
Thierry Thomas 2022-01-12 16:29:01 +01:00
parent 9a1f3d324f
commit f9bb2de919
5 changed files with 41 additions and 0 deletions

View File

@ -4772,6 +4772,7 @@
SUBDIR += py-mediafile
SUBDIR += py-medikit
SUBDIR += py-meliae
SUBDIR += py-memory-allocator
SUBDIR += py-memory-profiler
SUBDIR += py-mergedeep
SUBDIR += py-microversion-parse

View File

@ -0,0 +1,17 @@
# Created by: thierry@pompo.net
PORTNAME= memory_allocator
PORTVERSION= 0.1.2
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= thierry@FreeBSD.org
COMMENT= Allocate memory easily with cython
LICENSE= GPLv3
USES= python:3.6+
USE_PYTHON= cython distutils
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
TIMESTAMP = 1641999945
SHA256 (memory_allocator-0.1.2.tar.gz) = ddf42a2dcc678062f30c63c868335204d46a4ecdf4db0dc43ed4529f1d0ffab9
SIZE (memory_allocator-0.1.2.tar.gz) = 19611

View File

@ -0,0 +1,11 @@
An extension class to allocate memory easily with cython.
This extension class started as part of the Sage software.
It provides a single extension class MemoryAllocator with cdef methods.
Memory is freed when the instance of MemoryAllocator is deallocated. On failure
to allocate the memory, a proper error is raised.
WWW: https://github.com/kliem/memory_allocator
WWW: https://pypi.org/project/memory-allocator/

View File

@ -0,0 +1,9 @@
%%PYTHON_SITELIBDIR%%/memory_allocator/__init__.pxd
%%PYTHON_SITELIBDIR%%/memory_allocator/__init__.py
%%PYTHON_SITELIBDIR%%/memory_allocator/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.opt-1.pyc
%%PYTHON_SITELIBDIR%%/memory_allocator/__pycache__/__init__%%PYTHON_EXT_SUFFIX%%.pyc
%%PYTHON_SITELIBDIR%%/memory_allocator/memory.pxd
%%PYTHON_SITELIBDIR%%/memory_allocator/memory_allocator%%PYTHON_EXT_SUFFIX%%.so
%%PYTHON_SITELIBDIR%%/memory_allocator/memory_allocator.pxd
%%PYTHON_SITELIBDIR%%/memory_allocator/signals.pxd
%%PYTHON_SITELIBDIR%%/memory_allocator/test%%PYTHON_EXT_SUFFIX%%.so