piegy 2.1.10__tar.gz → 2.1.12__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.
- {piegy-2.1.10/src/piegy.egg-info → piegy-2.1.12}/PKG-INFO +1 -1
- {piegy-2.1.10 → piegy-2.1.12}/pyproject.toml +1 -1
- {piegy-2.1.10 → piegy-2.1.12}/setup.py +12 -1
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/C_core/Makefile +6 -6
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/__version__.py +2 -1
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/build_info.py +3 -3
- {piegy-2.1.10 → piegy-2.1.12/src/piegy.egg-info}/PKG-INFO +1 -1
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy.egg-info/SOURCES.txt +0 -1
- piegy-2.1.10/src/piegy/C_core/piegyc.so +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/LICENSE.txt +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/MANIFEST.in +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/README.md +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/setup.cfg +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/C_core/model.c +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/C_core/model.h +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/C_core/patch.c +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/C_core/patch.h +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/C_core/piegyc.h +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/C_core/runner.c +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/C_core/sim_funcs.c +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/C_core/sim_funcs.h +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/__init__.py +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/analysis.py +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/data_tools.py +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/figures.py +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/find_C.py +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/simulation.py +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/simulation_py.py +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/test_var.py +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/tools/__init__.py +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/tools/figure_tools.py +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/tools/file_tools.py +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy/videos.py +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy.egg-info/dependency_links.txt +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy.egg-info/requires.txt +0 -0
- {piegy-2.1.10 → piegy-2.1.12}/src/piegy.egg-info/top_level.txt +0 -0
@@ -19,7 +19,7 @@ class BuildSharedLib(build_ext):
|
|
19
19
|
|
20
20
|
def build_extension(self, ext):
|
21
21
|
if sys.platform == 'win32':
|
22
|
-
lib_name = 'piegyc.
|
22
|
+
lib_name = 'piegyc.pyd'
|
23
23
|
else:
|
24
24
|
lib_name = 'piegyc.so'
|
25
25
|
so_path = os.path.abspath(f'src/piegy/C_core/{lib_name}')
|
@@ -27,6 +27,17 @@ class BuildSharedLib(build_ext):
|
|
27
27
|
|
28
28
|
os.makedirs(os.path.dirname(target_path), exist_ok=True)
|
29
29
|
self.copy_file(so_path, target_path)
|
30
|
+
self.rm_duplicate()
|
31
|
+
|
32
|
+
def rm_duplicate(self):
|
33
|
+
C_core_path = os.path.abspath(f'src/piegy/C_core')
|
34
|
+
so_name = 'piegyc.so'
|
35
|
+
if sys.platform == 'win32':
|
36
|
+
so_name = 'piegyc.pyd'
|
37
|
+
try:
|
38
|
+
os.remove(os.path.join(C_core_path, so_name))
|
39
|
+
except OSError:
|
40
|
+
pass
|
30
41
|
|
31
42
|
|
32
43
|
|
@@ -10,11 +10,11 @@ LDFLAGS_COMMON = -flto
|
|
10
10
|
|
11
11
|
## Flags for Debugging ##
|
12
12
|
# slower, debuggable with lldb, with Address Sanitizer. Don't use in python
|
13
|
-
#
|
14
|
-
#
|
13
|
+
#CFLAGS_COMMON = -g -std=c99 -Wall -Wextra -MMD -MP -fsanitize=address,undefined -fno-omit-frame-pointer
|
14
|
+
#LDFLAGS_COMMON = -fsanitize=address,undefined
|
15
15
|
# slower, regular build, allow lldb
|
16
|
-
#
|
17
|
-
#
|
16
|
+
#CFLAGS_COMMON = -g -std=c99 -Wall -Wextra -MMD -MP
|
17
|
+
#LDFLAGS_COMMON =
|
18
18
|
|
19
19
|
|
20
20
|
#### OS specific ####
|
@@ -54,7 +54,7 @@ DEPS = $(OBJ:.o=.d) $(RUNNER_DEPS)
|
|
54
54
|
TEST = runner
|
55
55
|
ifeq '$(findstring ;,$(PATH))' ';'
|
56
56
|
# windows
|
57
|
-
SHARED_LIB = piegyc.
|
57
|
+
SHARED_LIB = piegyc.pyd
|
58
58
|
else
|
59
59
|
SHARED_LIB = piegyc.so
|
60
60
|
endif
|
@@ -83,7 +83,7 @@ $(SHARED_LIB): $(OBJ)
|
|
83
83
|
|
84
84
|
# Clean build files
|
85
85
|
clean:
|
86
|
-
rm -f $(OBJ) $(RUNNER_OBJ) $(TEST) $(SHARED_LIB) $(DEPS)
|
86
|
+
rm -f $(OBJ) $(RUNNER_OBJ) $(TEST) $(SHARED_LIB) $(DEPS) *.so
|
87
87
|
|
88
88
|
# Rebuild target: clean then all
|
89
89
|
re: clean all
|
@@ -1,4 +1,4 @@
|
|
1
|
-
__version__ = '2.1.
|
1
|
+
__version__ = '2.1.12'
|
2
2
|
|
3
3
|
'''
|
4
4
|
version history:
|
@@ -31,4 +31,5 @@ version history:
|
|
31
31
|
2.1.1: fix import bug for the C core.
|
32
32
|
2.1.2 ~ 2.1.9: updating & fixing wheel.
|
33
33
|
2.1.10: fix print bug in run function.
|
34
|
+
2.1.11: fix .so duplicate error.
|
34
35
|
'''
|
@@ -4,9 +4,9 @@ Auto-generated at compile time.
|
|
4
4
|
"""
|
5
5
|
|
6
6
|
build_info = {
|
7
|
-
"version": "2.1.
|
8
|
-
"built from": "local",
|
9
|
-
"build date": "2025-06-28
|
7
|
+
"version": "2.1.11",
|
8
|
+
"built from": "local machine",
|
9
|
+
"build date": "2025-06-28 04:36:00",
|
10
10
|
"python version": "3.11.10",
|
11
11
|
"platform": "darwin"
|
12
12
|
}
|
Binary file
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|