File tree Expand file tree Collapse file tree 5 files changed +50
-41
lines changed
Expand file tree Collapse file tree 5 files changed +50
-41
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -17,8 +17,21 @@ It provides a single extension class `MemoryAllocator` with `cdef` methods
1717Memory is freed when the instance of ` MemoryAllocator ` is deallocated.
1818On failure to allocate the memory, a proper error is raised.
1919
20+ ## Building from source
21+
22+ This project uses [ meson-python] ( https://mesonbuild.com/meson-python/ ) for
23+ its build backend. A typical editable install looks like:
24+
25+ ``` shell
26+ python -m pip install -e .
27+ ```
28+
2029# Changelog
2130
31+ ## 0.1.5
32+ - Migrate build system to Meson.
33+
34+
2235## 0.1.4
2336
2437- Modernize Python metadata, require Python >= 3.8.
Original file line number Diff line number Diff line change 1+ project (
2+ ' memory_allocator' ,
3+ ' c' , ' cython' ,
4+ meson_version : ' >=1.2.0' ,
5+ )
6+ # Python
7+ py_module = import (' python' )
8+ py = py_module.find_installation(pure : false )
9+ py_dep = py.dependency ()
10+
11+ py.install_sources(
12+ ' memory_allocator/__init__.py' ,
13+ ' memory_allocator/__init__.pxd' ,
14+ ' memory_allocator/memory_allocator.pxd' ,
15+ ' memory_allocator/memory.pxd' ,
16+ ' memory_allocator/signals.pxd' ,
17+ subdir : ' memory_allocator' ,
18+ )
19+
20+ extensions = {
21+ ' memory_allocator' : files (' memory_allocator/memory_allocator.pyx' ),
22+ ' test' : files (' memory_allocator/test.pyx' ),
23+ }
24+
25+ src = include_directories (' memory_allocator' )
26+ foreach name, pyx : extensions
27+ py.extension_module(name,
28+ pyx,
29+ include_directories : [src],
30+ dependencies : [py_dep],
31+ install : true ,
32+ subdir : ' memory_allocator'
33+ )
34+ endforeach
Original file line number Diff line number Diff line change 11[build-system ]
2- requires = [
3- " setuptools>=61.2" ,
4- " Cython" ,
5- " Cython>=0.29.30; python_version > '3.10'"
6- ]
7- build-backend = " setuptools.build_meta"
2+ requires = [" meson-python>=0.15.0" , " Cython>=3.0" ]
3+ build-backend = " mesonpy"
84
95[project ]
106name = " memory_allocator"
117version = " 0.1.4"
128description = " An extension class to allocate memory easily with cython"
139authors = [
14- {
name =
" Jeroen Demeyer, Nathann Cohen, Jonathan Kliem" ,
email =
" [email protected] " },
15- ]
16- dependencies = [
17- " Cython" ,
10+ {
name =
" Jeroen Demeyer, Nathann Cohen, Jonathan Kliem" ,
email =
" [email protected] " },
1811]
1912requires-python = " >=3.11"
2013readme = " README.md"
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments