gehseeker 0.0.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.
Files changed (36) hide show
  1. gehseeker-0.0.1/AUTHORS.rst +9 -0
  2. gehseeker-0.0.1/LICENSE.rst +5 -0
  3. gehseeker-0.0.1/MANIFEST.in +10 -0
  4. gehseeker-0.0.1/PKG-INFO +31 -0
  5. gehseeker-0.0.1/README.rst +13 -0
  6. gehseeker-0.0.1/docs/IO License Terms.pdf +0 -0
  7. gehseeker-0.0.1/docs/Seeker_Reference_Manual.pdf +0 -0
  8. gehseeker-0.0.1/docs/Seeker_User_s_Manual.pdf +0 -0
  9. gehseeker-0.0.1/docs/authors.rst +1 -0
  10. gehseeker-0.0.1/docs/index.rst +18 -0
  11. gehseeker-0.0.1/docs/installation.rst +25 -0
  12. gehseeker-0.0.1/docs/readme.rst +1 -0
  13. gehseeker-0.0.1/docs/usage.rst +7 -0
  14. gehseeker-0.0.1/gehseeker/__init__.py +2 -0
  15. gehseeker-0.0.1/gehseeker/bin/coll +0 -0
  16. gehseeker-0.0.1/gehseeker/bin/coll-linux +0 -0
  17. gehseeker-0.0.1/gehseeker/bin/coll.exe +0 -0
  18. gehseeker-0.0.1/gehseeker/bin/hard.exe +0 -0
  19. gehseeker-0.0.1/gehseeker/gehseeker.2.0.0.cpython-311.windows.pyd +0 -0
  20. gehseeker-0.0.1/gehseeker/gehseeker.dll +0 -0
  21. gehseeker-0.0.1/gehseeker/gehseeker.py +72 -0
  22. gehseeker-0.0.1/gehseeker/highs.dll +0 -0
  23. gehseeker-0.0.1/gehseeker/libboost_filesystem-mt.dll +0 -0
  24. gehseeker-0.0.1/gehseeker/libstdc++-6.dll +0 -0
  25. gehseeker-0.0.1/gehseeker/libwinpthread-1.dll +0 -0
  26. gehseeker-0.0.1/gehseeker/scripts/collect.sh +6 -0
  27. gehseeker-0.0.1/gehseeker/scripts/darwin-collect.sh +6 -0
  28. gehseeker-0.0.1/gehseeker/scripts/darwin_seekeragg.sh +9 -0
  29. gehseeker-0.0.1/gehseeker/scripts/seekeragg.sh +11 -0
  30. gehseeker-0.0.1/gehseeker.egg-info/PKG-INFO +31 -0
  31. gehseeker-0.0.1/gehseeker.egg-info/SOURCES.txt +34 -0
  32. gehseeker-0.0.1/gehseeker.egg-info/dependency_links.txt +1 -0
  33. gehseeker-0.0.1/gehseeker.egg-info/not-zip-safe +1 -0
  34. gehseeker-0.0.1/gehseeker.egg-info/top_level.txt +1 -0
  35. gehseeker-0.0.1/setup.cfg +4 -0
  36. gehseeker-0.0.1/setup.py +37 -0
@@ -0,0 +1,9 @@
1
+ =======
2
+ Credits
3
+ =======
4
+
5
+ Development Lead
6
+ ----------------
7
+
8
+ * Meinolf Sellmann <info@insideopt.com>
9
+
@@ -0,0 +1,5 @@
1
+ ===================
2
+ Copyright Protected
3
+ ===================
4
+
5
+ * (c) InsideOpt 2025 - All Rights Reserved! NOT OPEN SOURCE!
@@ -0,0 +1,10 @@
1
+ include AUTHORS.rst
2
+ include LICENSE.rst
3
+ include README.rst
4
+
5
+ recursive-include tests *
6
+ recursive-exclude * __pycache__
7
+ recursive-exclude * *.py[co]
8
+
9
+ recursive-include docs *.rst conf.py Makefile make.bat *.jpg *.png *.gif *.pdf
10
+ recursive-include gehseeker *.so *.pyd gehseeker.py
@@ -0,0 +1,31 @@
1
+ Metadata-Version: 2.1
2
+ Name: gehseeker
3
+ Version: 0.0.1
4
+ Summary: InsideOpt Seeker Distribution for GEH on Windows
5
+ Author: Meinolf Sellmann
6
+ Author-email: info@insideopt.com
7
+ Keywords: insideopt,seeker,optimization
8
+ Classifier: Development Status :: 5 - Production/Stable
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Natural Language :: English
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Operating System :: POSIX :: Linux
13
+ Classifier: Operating System :: MacOS :: MacOS X
14
+ Classifier: Operating System :: Microsoft :: Windows
15
+ Requires-Python: >=3.11.0
16
+ License-File: LICENSE.rst
17
+ License-File: AUTHORS.rst
18
+
19
+ ================
20
+ insideopt-seeker
21
+ ================
22
+
23
+ InsideOpt Seeker GEH on Windows Distribution
24
+
25
+ Credits
26
+ -------
27
+
28
+ This package was created with Cookiecutter_.
29
+
30
+ .. _Cookiecutter: https://github.com/audreyr/cookiecutter
31
+ .. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
@@ -0,0 +1,13 @@
1
+ ================
2
+ insideopt-seeker
3
+ ================
4
+
5
+ InsideOpt Seeker GEH on Windows Distribution
6
+
7
+ Credits
8
+ -------
9
+
10
+ This package was created with Cookiecutter_.
11
+
12
+ .. _Cookiecutter: https://github.com/audreyr/cookiecutter
13
+ .. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
@@ -0,0 +1 @@
1
+ .. include:: ../AUTHORS.rst
@@ -0,0 +1,18 @@
1
+ Welcome to test-seeker's documentation!
2
+ ======================================
3
+
4
+ .. toctree::
5
+ :maxdepth: 2
6
+ :caption: Contents:
7
+
8
+ readme
9
+ installation
10
+ modules
11
+ usage
12
+ authors
13
+
14
+ Indices and tables
15
+ ==================
16
+ * :ref:`genindex`
17
+ * :ref:`modindex`
18
+ * :ref:`search`
@@ -0,0 +1,25 @@
1
+ .. highlight:: shell
2
+
3
+ ============
4
+ Installation
5
+ ============
6
+
7
+
8
+ Stable release
9
+ --------------
10
+
11
+ To install test-seeker, run this command in your terminal:
12
+
13
+ .. code-block:: console
14
+
15
+ $ pip install insideopt-seeker
16
+
17
+ This is the preferred method to install seeker, as it will always install the most recent stable release.
18
+
19
+ If you don't have `pip`_ installed, this `Python installation guide`_ can guide
20
+ you through the process.
21
+
22
+ .. _pip: https://pip.pypa.io
23
+ .. _Python installation guide: http://docs.python-guide.org/en/latest/starting/installation/
24
+
25
+
@@ -0,0 +1 @@
1
+ .. include:: ../README.rst
@@ -0,0 +1,7 @@
1
+ =====
2
+ Usage
3
+ =====
4
+
5
+ To use test-seeker in a project::
6
+
7
+ import test_seeker
@@ -0,0 +1,2 @@
1
+ from . import gehseeker
2
+ from .gehseeker import configure_distributed_run_directory
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,72 @@
1
+ import sys
2
+ import os
3
+ import platform
4
+ import importlib.util
5
+ import subprocess
6
+ import glob
7
+
8
+
9
+ def __bootstrap__():
10
+ global __bootstrap__, __loader__, __file__
11
+ import sys, pkg_resources, imp
12
+ # Get the major and minor Python version
13
+ py_version = f"{sys.version_info.major}{sys.version_info.minor}"
14
+ # Get the operating system
15
+ os_name = platform.system().lower()
16
+ if os_name == 'windows':
17
+ pyd_file = os.path.join(os.path.dirname(__file__),f"gehseeker.2.0.0.cpython-{py_version}-{os_name}.pyd")
18
+ spec = importlib.util.spec_from_file_location("gehseeker", pyd_file)
19
+ else:
20
+ so_file = os.path.join(os.path.dirname(__file__),f"gehseeker.2.0.0.cpython-{py_version}-{os_name}.so")
21
+ spec = importlib.util.spec_from_file_location("gehseeker", so_file)
22
+ mylib = importlib.util.module_from_spec(spec)
23
+ spec.loader.exec_module(mylib)
24
+
25
+
26
+ def set_new_SeekerPath(xrc, newdir):
27
+ # The environment variable and value you want to set
28
+ env_var = "SeekerPath"
29
+ # The .xrc file
30
+ xrc_file = os.path.expanduser(f"~/{xrc}")
31
+ # Read the current .xrc file
32
+ with open(xrc_file, "r") as file:
33
+ lines = file.readlines()
34
+ # Check if the environment variable is already set
35
+ lines = [line for line in lines if not line.strip().startswith(f"export {env_var}=")]
36
+ # Add the new environment variable setting
37
+ lines.append(f"export {env_var}={newdir}\n")
38
+ # Write the new .xrc file
39
+ with open(xrc_file, "w") as file:
40
+ file.writelines(lines)
41
+
42
+
43
+ def configure_distributed_run_directory():
44
+ global __bootstrap__, __loader__, __file__
45
+ import sys, pkg_resources, imp
46
+ # Get the install path from the user
47
+ path = os.path.expanduser(input("Please enter the absolute path to the new directory: "))
48
+ with open(os.path.expanduser('~/.bashrc'), 'a') as bashrc:
49
+ set_new_SeekerPath('.bashrc', path)
50
+ print("\n\t\033[91mAttention: Please run 'source ~/.bashrc' in your shell!\033[0m")
51
+ with open(os.path.expanduser('~/.zshrc'), 'a') as zshrc:
52
+ set_new_SeekerPath('.zshrc', path)
53
+ print("\n\t\033[91mAttention: Please run 'source ~/.zshrc' in your shell!\033[0m")
54
+ sourcedir = os.path.dirname(os.path.realpath(__file__))
55
+ source = os.path.join(sourcedir, f"scripts")
56
+ target = os.path.join(path, f"scripts")
57
+ subprocess.run(['cp', '-r', source, target], check=True)
58
+ sh_files = glob.glob(f"{target}/*.sh")
59
+ # Make each script executable
60
+ for file in sh_files:
61
+ subprocess.run(["chmod", "+x", file])
62
+ source = os.path.join(sourcedir, f"bin")
63
+ target = os.path.join(path, f"bin")
64
+ subprocess.run(['cp', '-r', source, target], check=True)
65
+ subprocess.run(["chmod", "+x", f"{target}/coll"])
66
+ print(f"\n\t\033[91mAttention: Please be sure to run this command: 'sudo spctl --add {target}/coll' \033[0m\n")
67
+ target = os.path.join(path, f"tmp")
68
+ subprocess.run(['mkdir', target], check=False, stderr=subprocess.DEVNULL)
69
+
70
+
71
+ __bootstrap__()
72
+
Binary file
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/bash
2
+
3
+ for f in $1/out_*.file; do
4
+ ${SeekerPath}/bin/coll $f $2 $3
5
+ sleep 0.2
6
+ done
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/bash
2
+
3
+ for f in $1/out_*.file; do
4
+ ${SeekerPath}/bin/darwin-coll $f $2 $3
5
+ sleep 0.2
6
+ done
@@ -0,0 +1,9 @@
1
+ echo $$ > $1/seekeragg.pid
2
+
3
+ for (( c=0; c< $4 ; c++ )) do
4
+ sleep 2
5
+ outFiles=$(gfind $1 -name out\*.file -printf '%P,')
6
+ ${SeekerPath}/bin/coll $1 $2 $3 ${outFiles}
7
+ done
8
+
9
+
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/bash
2
+
3
+ #echo "SEEKERAGG CALLED WITH ARGUMENTS $1 $2 $3 $4"
4
+
5
+ for (( c=0; c< $4 ; c++ )) do
6
+ sleep 2
7
+ outFiles=$(find $1 -name out\*.file -printf '%P,')
8
+ ${SeekerPath}/bin/coll-linux $1 $2 $3 ${outFiles}
9
+ done
10
+
11
+
@@ -0,0 +1,31 @@
1
+ Metadata-Version: 2.1
2
+ Name: gehseeker
3
+ Version: 0.0.1
4
+ Summary: InsideOpt Seeker Distribution for GEH on Windows
5
+ Author: Meinolf Sellmann
6
+ Author-email: info@insideopt.com
7
+ Keywords: insideopt,seeker,optimization
8
+ Classifier: Development Status :: 5 - Production/Stable
9
+ Classifier: Intended Audience :: Developers
10
+ Classifier: Natural Language :: English
11
+ Classifier: Programming Language :: Python :: 3.11
12
+ Classifier: Operating System :: POSIX :: Linux
13
+ Classifier: Operating System :: MacOS :: MacOS X
14
+ Classifier: Operating System :: Microsoft :: Windows
15
+ Requires-Python: >=3.11.0
16
+ License-File: LICENSE.rst
17
+ License-File: AUTHORS.rst
18
+
19
+ ================
20
+ insideopt-seeker
21
+ ================
22
+
23
+ InsideOpt Seeker GEH on Windows Distribution
24
+
25
+ Credits
26
+ -------
27
+
28
+ This package was created with Cookiecutter_.
29
+
30
+ .. _Cookiecutter: https://github.com/audreyr/cookiecutter
31
+ .. _`audreyr/cookiecutter-pypackage`: https://github.com/audreyr/cookiecutter-pypackage
@@ -0,0 +1,34 @@
1
+ AUTHORS.rst
2
+ LICENSE.rst
3
+ MANIFEST.in
4
+ README.rst
5
+ setup.py
6
+ docs/IO License Terms.pdf
7
+ docs/Seeker_Reference_Manual.pdf
8
+ docs/Seeker_User_s_Manual.pdf
9
+ docs/authors.rst
10
+ docs/index.rst
11
+ docs/installation.rst
12
+ docs/readme.rst
13
+ docs/usage.rst
14
+ gehseeker/__init__.py
15
+ gehseeker/gehseeker.2.0.0.cpython-311.windows.pyd
16
+ gehseeker/gehseeker.dll
17
+ gehseeker/gehseeker.py
18
+ gehseeker/highs.dll
19
+ gehseeker/libboost_filesystem-mt.dll
20
+ gehseeker/libstdc++-6.dll
21
+ gehseeker/libwinpthread-1.dll
22
+ gehseeker.egg-info/PKG-INFO
23
+ gehseeker.egg-info/SOURCES.txt
24
+ gehseeker.egg-info/dependency_links.txt
25
+ gehseeker.egg-info/not-zip-safe
26
+ gehseeker.egg-info/top_level.txt
27
+ gehseeker/bin/coll
28
+ gehseeker/bin/coll-linux
29
+ gehseeker/bin/coll.exe
30
+ gehseeker/bin/hard.exe
31
+ gehseeker/scripts/collect.sh
32
+ gehseeker/scripts/darwin-collect.sh
33
+ gehseeker/scripts/darwin_seekeragg.sh
34
+ gehseeker/scripts/seekeragg.sh
@@ -0,0 +1 @@
1
+ gehseeker
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,37 @@
1
+ #!/usr/bin/env python
2
+
3
+ """The setup script."""
4
+
5
+ from setuptools import setup, find_packages, Extension
6
+
7
+ with open('README.rst') as readme_file:
8
+ readme = readme_file.read()
9
+
10
+ requirements = [ ]
11
+
12
+ test_requirements = [ ]
13
+
14
+ setup(
15
+ author="Meinolf Sellmann",
16
+ author_email='info@insideopt.com',
17
+ python_requires='>=3.11.0',
18
+ classifiers=[
19
+ 'Development Status :: 5 - Production/Stable',
20
+ 'Intended Audience :: Developers',
21
+ 'Natural Language :: English',
22
+ 'Programming Language :: Python :: 3.11',
23
+ 'Operating System :: POSIX :: Linux',
24
+ 'Operating System :: MacOS :: MacOS X',
25
+ 'Operating System :: Microsoft :: Windows'
26
+ ],
27
+ description="InsideOpt Seeker Distribution for GEH on Windows",
28
+ install_requires=requirements,
29
+ long_description=readme,
30
+ keywords='insideopt, seeker, optimization',
31
+ name='gehseeker',
32
+ test_suite='tests',
33
+ version='0.0.1',
34
+ packages=find_packages(include=['gehseeker', 'gehseeker.*', '*.so', '*.pyd', '*.dll']),
35
+ package_data={'gehseeker': ['*.so', 'gehseeker.py', 'bin/*', 'scripts/*', '*.pyd', '*.dll']},
36
+ zip_safe=False,
37
+ )