emod-malaria 2.27.0__py3-none-any.whl

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.
Binary file
File without changes
@@ -0,0 +1,38 @@
1
+ import os
2
+ import sys
3
+ import shutil
4
+ import zipfile
5
+ from glob import glob
6
+
7
+
8
+ def extract(package_name, local_dir):
9
+ os.makedirs(local_dir, exist_ok=True)
10
+ os.chdir(local_dir)
11
+
12
+ pkgdir = sys.modules[package_name].__path__[0]
13
+ # extract all *.zip files in the package, preserve relative file paths
14
+ for fullpath in glob(os.path.join(pkgdir, "**/*.zip"), recursive=True):
15
+ # determine zip relative filepath
16
+ rel_filepath = os.path.relpath(fullpath, pkgdir)
17
+ rel_dir = os.path.dirname(rel_filepath)
18
+ if rel_dir and len(rel_dir) > 0:
19
+ os.makedirs(rel_dir, exist_ok=True)
20
+ # copy archive under current dir
21
+ temp_zip_path = os.path.join(os.getcwd(), rel_filepath)
22
+ shutil.copy(fullpath, temp_zip_path)
23
+ with zipfile.ZipFile(rel_filepath, 'r') as zip_ref:
24
+ zip_ref.extractall(rel_dir)
25
+ os.unlink(temp_zip_path)
26
+
27
+ os.chdir("..")
28
+
29
+
30
+ def setup(local_dir="stash"):
31
+ """
32
+ Extract binary and schema into a local directory.
33
+ """
34
+ extract('emod_malaria', local_dir)
35
+
36
+
37
+ if __name__ == "__main__":
38
+ setup()
Binary file
@@ -0,0 +1,15 @@
1
+ Metadata-Version: 2.4
2
+ Name: emod-malaria
3
+ Version: 2.27.0
4
+ Summary: PyPI distribution of EMOD for the Malaria sim type
5
+ License-Expression: MIT
6
+ Project-URL: Documentation, https://docs.idmod.org/projects/emod/en/latest/
7
+ Project-URL: Repository, https://github.com/EMOD-Hub/EMOD
8
+ Project-URL: Issues, https://github.com/EMOD-Hub/EMOD/issues
9
+ Classifier: Operating System :: POSIX :: Linux
10
+ Classifier: Programming Language :: C++
11
+ Classifier: Topic :: Scientific/Engineering :: Bio-Informatics
12
+ Requires-Python: >=3.9
13
+ Description-Content-Type: text/markdown
14
+ Provides-Extra: docs
15
+ Provides-Extra: tests
@@ -0,0 +1,8 @@
1
+ emod_malaria/Eradication.zip,sha256=miolU-rdpWmRO8DqggG5rOITbGe5P_e7nIm2nGq1l2w,3695118
2
+ emod_malaria/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
3
+ emod_malaria/bootstrap.py,sha256=PB3QnzGe_6is7ebbQNpxzLtv73q5WIUw8-q21bJuhAw,1144
4
+ emod_malaria/schema.zip,sha256=-hfm3RRYZLP27zlLES-HF9jPb62YI-bAUd5uA2ejbRs,91907
5
+ emod_malaria-2.27.0.dist-info/METADATA,sha256=zsOP_x8yOEHnFPK3qqgwQNu1zgf1QRM8nUQ8jHElrf8,607
6
+ emod_malaria-2.27.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
7
+ emod_malaria-2.27.0.dist-info/top_level.txt,sha256=HjY1vjhSuhJeVv5pzWRW4FWR3vr0IOJfrvl8MlHOagA,13
8
+ emod_malaria-2.27.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (80.9.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1 @@
1
+ emod_malaria