zpic 0.1.0__tar.gz → 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {zpic-0.1.0 → zpic-0.1.1}/PKG-INFO +1 -1
- zpic-0.1.1/build.py +15 -0
- {zpic-0.1.0 → zpic-0.1.1}/pyproject.toml +5 -9
- zpic-0.1.1/src/zpic/__init__.py +21 -0
- zpic-0.1.1/src/zpic/contrib/__init__.py +20 -0
- zpic-0.1.0/build.py +0 -3
- zpic-0.1.0/src/zpic/__init__.py +0 -0
- {zpic-0.1.0 → zpic-0.1.1}/LICENCE +0 -0
- {zpic-0.1.0 → zpic-0.1.1}/README.md +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.3
|
2
2
|
Name: zpic
|
3
|
-
Version: 0.1.
|
3
|
+
Version: 0.1.1
|
4
4
|
Summary: A fork of the https://github.com/zpic-plasma/zpic project which attempts to integrate the python functionality as a standalone pip package for convenience
|
5
5
|
Author: Ricardo Teixeira
|
6
6
|
Author-email: ricardo.a.teixeira@tecnico.ulisboa.pt
|
zpic-0.1.1/build.py
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
from subprocess import run
|
2
|
+
from distutils.dir_util import copy_tree
|
3
|
+
|
4
|
+
|
5
|
+
# run the original python compilation program
|
6
|
+
run("cd python/source && python3 setup.py build_ext --build-lib=\"../lib\"", shell=True)
|
7
|
+
run("cd contrib/python/source && python3 setup.py build_ext --build-lib=\"../lib\"", shell=True)
|
8
|
+
|
9
|
+
# Copy contents of python/lib/ after compilation.
|
10
|
+
# We could change the python/source/Makefile BUILD_LIB library but we'd rather not
|
11
|
+
# alter the current compilation process, rather append to it.
|
12
|
+
# We could also change the Makefile to add a copy command but that would not be platform agnostic
|
13
|
+
# Also, python/lib/ contains .py files which should also be present in the wheel
|
14
|
+
copy_tree("python/lib", "src/zpic")
|
15
|
+
copy_tree("contrib/python/lib", "src/zpic/contrib")
|
@@ -1,6 +1,6 @@
|
|
1
1
|
[project]
|
2
2
|
name = "zpic"
|
3
|
-
version = "0.1.
|
3
|
+
version = "0.1.1"
|
4
4
|
description = "A fork of the https://github.com/zpic-plasma/zpic project which attempts to integrate the python functionality as a standalone pip package for convenience"
|
5
5
|
authors = [
|
6
6
|
{name = "Ricardo Teixeira", email = "ricardo.a.teixeira@tecnico.ulisboa.pt"},
|
@@ -20,12 +20,12 @@ dependencies = [
|
|
20
20
|
setuptools = "^80.9.0"
|
21
21
|
cython = "^3.1.3"
|
22
22
|
|
23
|
-
# [project.scripts]
|
24
|
-
# compile = "compile:compile"
|
25
|
-
|
26
23
|
[tool.poetry]
|
27
24
|
packages = [{include = "zpic", from = "src"}]
|
28
|
-
include = [
|
25
|
+
include = [
|
26
|
+
{path = "src/zpic/*", format = "wheel"},
|
27
|
+
{path = "src/zpic/contrib/*", format = "wheel"}
|
28
|
+
]
|
29
29
|
|
30
30
|
|
31
31
|
[tool.poetry.build]
|
@@ -34,7 +34,3 @@ script = "build.py"
|
|
34
34
|
[build-system]
|
35
35
|
requires = ["poetry-core>=2.0.0,<3.0.0", "cython", "setuptools"]
|
36
36
|
build-backend = "poetry.core.masonry.api"
|
37
|
-
|
38
|
-
|
39
|
-
# [tool.cibuildwheel]
|
40
|
-
# before-all = "pip install cython setuptools && cd python/source && python setup.py build_ext --build-lib=../lib && cd ../.. && ls -R zpic"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
# this script loads the compiled binaries into the module namespace dynamically
|
2
|
+
|
3
|
+
from pathlib import Path
|
4
|
+
from sys import path
|
5
|
+
|
6
|
+
lib_dir = Path(__file__).parent
|
7
|
+
path.append(str(lib_dir))
|
8
|
+
|
9
|
+
modules = []
|
10
|
+
|
11
|
+
# default plugins
|
12
|
+
for bin in lib_dir.iterdir():
|
13
|
+
name = bin.name.split('.')[0]
|
14
|
+
if name.startswith('__'):
|
15
|
+
continue
|
16
|
+
try:
|
17
|
+
globals()[name] = __import__(name)
|
18
|
+
modules.append(name)
|
19
|
+
except ImportError:
|
20
|
+
globals()[name] = None
|
21
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# this script loads the contrib compiled binaries into the module namespace dynamically
|
2
|
+
|
3
|
+
from pathlib import Path
|
4
|
+
from sys import path
|
5
|
+
|
6
|
+
lib_dir = Path(__file__).parent
|
7
|
+
path.append(str(lib_dir))
|
8
|
+
|
9
|
+
modules = []
|
10
|
+
|
11
|
+
# contrib plugins
|
12
|
+
for bin in lib_dir.iterdir():
|
13
|
+
name = bin.name.split('.')[0]
|
14
|
+
if name.startswith('__'):
|
15
|
+
continue
|
16
|
+
try:
|
17
|
+
globals()[name] = __import__(name)
|
18
|
+
modules.append(name)
|
19
|
+
except ImportError:
|
20
|
+
globals()[name] = None
|
zpic-0.1.0/build.py
DELETED
zpic-0.1.0/src/zpic/__init__.py
DELETED
File without changes
|
File without changes
|
File without changes
|