Maniverse 0.3.2__tar.gz → 0.3.3__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.

Potentially problematic release.


This version of Maniverse might be problematic. Click here for more details.

Files changed (34) hide show
  1. {maniverse-0.3.2 → maniverse-0.3.3/Maniverse.egg-info}/PKG-INFO +2 -7
  2. {maniverse-0.3.2 → maniverse-0.3.3}/Maniverse.egg-info/SOURCES.txt +0 -1
  3. maniverse-0.3.3/Maniverse.egg-info/top_level.txt +4 -0
  4. {maniverse-0.3.2/Maniverse.egg-info → maniverse-0.3.3}/PKG-INFO +2 -7
  5. {maniverse-0.3.2 → maniverse-0.3.3}/README.md +1 -6
  6. {maniverse-0.3.2 → maniverse-0.3.3}/pyproject.toml +1 -1
  7. {maniverse-0.3.2 → maniverse-0.3.3}/setup.py +23 -23
  8. maniverse-0.3.2/MANIFEST.in +0 -1
  9. maniverse-0.3.2/Maniverse.egg-info/top_level.txt +0 -1
  10. {maniverse-0.3.2 → maniverse-0.3.3}/LICENSE +0 -0
  11. {maniverse-0.3.2 → maniverse-0.3.3}/Maniverse.egg-info/dependency_links.txt +0 -0
  12. {maniverse-0.3.2 → maniverse-0.3.3}/setup.cfg +0 -0
  13. {maniverse-0.3.2 → maniverse-0.3.3}/src/Macro.h +0 -0
  14. {maniverse-0.3.2 → maniverse-0.3.3}/src/Manifold/Grassmann.cpp +0 -0
  15. {maniverse-0.3.2 → maniverse-0.3.3}/src/Manifold/Grassmann.h +0 -0
  16. {maniverse-0.3.2 → maniverse-0.3.3}/src/Manifold/Manifold.cpp +0 -0
  17. {maniverse-0.3.2 → maniverse-0.3.3}/src/Manifold/Manifold.h +0 -0
  18. {maniverse-0.3.2 → maniverse-0.3.3}/src/Manifold/Orthogonal.cpp +0 -0
  19. {maniverse-0.3.2 → maniverse-0.3.3}/src/Manifold/Orthogonal.h +0 -0
  20. {maniverse-0.3.2 → maniverse-0.3.3}/src/Manifold/PyManifoldIn.h +0 -0
  21. {maniverse-0.3.2 → maniverse-0.3.3}/src/Manifold/PyManifoldOut.h +0 -0
  22. {maniverse-0.3.2 → maniverse-0.3.3}/src/Manifold/Simplex.cpp +0 -0
  23. {maniverse-0.3.2 → maniverse-0.3.3}/src/Manifold/Simplex.h +0 -0
  24. {maniverse-0.3.2 → maniverse-0.3.3}/src/Manifold/TransRotInvPointCloud.cpp +0 -0
  25. {maniverse-0.3.2 → maniverse-0.3.3}/src/Manifold/TransRotInvPointCloud.h +0 -0
  26. {maniverse-0.3.2 → maniverse-0.3.3}/src/Optimizer/HessUpdate.cpp +0 -0
  27. {maniverse-0.3.2 → maniverse-0.3.3}/src/Optimizer/HessUpdate.h +0 -0
  28. {maniverse-0.3.2 → maniverse-0.3.3}/src/Optimizer/PyOptimizerIn.h +0 -0
  29. {maniverse-0.3.2 → maniverse-0.3.3}/src/Optimizer/PyOptimizerOut.h +0 -0
  30. {maniverse-0.3.2 → maniverse-0.3.3}/src/Optimizer/SubSolver.cpp +0 -0
  31. {maniverse-0.3.2 → maniverse-0.3.3}/src/Optimizer/SubSolver.h +0 -0
  32. {maniverse-0.3.2 → maniverse-0.3.3}/src/Optimizer/TrustRegion.cpp +0 -0
  33. {maniverse-0.3.2 → maniverse-0.3.3}/src/Optimizer/TrustRegion.h +0 -0
  34. {maniverse-0.3.2 → maniverse-0.3.3}/src/PyManiverse.cpp +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Maniverse
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Numerical optimization on manifolds
5
5
  Home-page: https://github.com/FreemanTheMaverick/Maniverse.git
6
6
  Author: FreemanTheMaverick
@@ -78,12 +78,7 @@ $ git clone https://github.com/FreemanTheMaverick/Maniverse.git
78
78
  $ python
79
79
  >>> import Maniverse as mv
80
80
  ```
81
- ### Pip (for Python use only)
82
- * Setting environment variables
83
- ```
84
- $ export PYTHON3=[The path where you can find "Python.h".] # You may check this by the command "locate Python.h".
85
- $ export EIGEN3=[The path where you can find "Eigen/", "signature_of_eigen3_matrix_library" and "unsupported/".] # This is optional. If this is not set, the Eigen3 library will be downloaded automatically.
86
- ```
81
+ ### Pip (for Python only)
87
82
  * Installation with `pip`
88
83
  ```
89
84
  pip install Maniverse
@@ -1,5 +1,4 @@
1
1
  LICENSE
2
- MANIFEST.in
3
2
  README.md
4
3
  pyproject.toml
5
4
  setup.py
@@ -0,0 +1,4 @@
1
+ Maniverse
2
+ src
3
+ src/Manifold
4
+ src/Optimizer
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: Maniverse
3
- Version: 0.3.2
3
+ Version: 0.3.3
4
4
  Summary: Numerical optimization on manifolds
5
5
  Home-page: https://github.com/FreemanTheMaverick/Maniverse.git
6
6
  Author: FreemanTheMaverick
@@ -78,12 +78,7 @@ $ git clone https://github.com/FreemanTheMaverick/Maniverse.git
78
78
  $ python
79
79
  >>> import Maniverse as mv
80
80
  ```
81
- ### Pip (for Python use only)
82
- * Setting environment variables
83
- ```
84
- $ export PYTHON3=[The path where you can find "Python.h".] # You may check this by the command "locate Python.h".
85
- $ export EIGEN3=[The path where you can find "Eigen/", "signature_of_eigen3_matrix_library" and "unsupported/".] # This is optional. If this is not set, the Eigen3 library will be downloaded automatically.
86
- ```
81
+ ### Pip (for Python only)
87
82
  * Installation with `pip`
88
83
  ```
89
84
  pip install Maniverse
@@ -61,12 +61,7 @@ $ git clone https://github.com/FreemanTheMaverick/Maniverse.git
61
61
  $ python
62
62
  >>> import Maniverse as mv
63
63
  ```
64
- ### Pip (for Python use only)
65
- * Setting environment variables
66
- ```
67
- $ export PYTHON3=[The path where you can find "Python.h".] # You may check this by the command "locate Python.h".
68
- $ export EIGEN3=[The path where you can find "Eigen/", "signature_of_eigen3_matrix_library" and "unsupported/".] # This is optional. If this is not set, the Eigen3 library will be downloaded automatically.
69
- ```
64
+ ### Pip (for Python only)
70
65
  * Installation with `pip`
71
66
  ```
72
67
  pip install Maniverse
@@ -1,3 +1,3 @@
1
1
  [build-system]
2
- requires = ["setuptools", "pybind11", "wget"]
2
+ requires = ["setuptools", "pybind11"]
3
3
  build-backend = "setuptools.build_meta"
@@ -1,39 +1,33 @@
1
1
  import os
2
- import wget
2
+ import urllib.request
3
3
  import tarfile
4
- import subprocess
5
4
  from glob import glob
6
5
  from setuptools import setup, find_packages
7
- from setuptools.command.build import build
6
+ from setuptools.command.build_py import build_py
8
7
  import pybind11
9
8
  from pybind11.setup_helpers import Pybind11Extension, ParallelCompile, naive_recompile
10
9
 
11
- __version__ = "0.3.2"
12
- pwd = os.path.dirname(__file__)
10
+ __version__ = "0.3.3"
13
11
 
14
- # Checking dependencies
15
- EIGEN3 = os.getenv("EIGEN3", default = '')
16
- if len(EIGEN3) > 0:
17
- print("Looking for Eigen3 at %s ..." % EIGEN3, end='')
18
- if os.path.exists(EIGEN3 + "/Eigen/") and os.path.exists(EIGEN3 + "/unsupported/") and os.path.isfile(EIGEN3 + "/signature_of_eigen3_matrix_library"):
19
- print("Found!")
20
- else:
21
- raise RuntimeError("Eigen3 does not exist!")
22
- else:
23
- print("The environment variable $EIGEN3 is not set. -> Downloading ...")
24
- filename = wget.download("https://gitlab.com/libeigen/eigen/-/archive/3.4-rc1/eigen-3.4-rc1.tar.gz", bar = None)
25
- with tarfile.open(filename) as tar:
26
- tar.extractall(path = pwd) # Directory: eigen-3.4-rc1
27
- EIGEN3 = pwd + "/eigen-3.4-rc1/"
28
- print("EIGEN3 is %s." % EIGEN3)
12
+ # Downloading Eigen3
13
+ pwd = os.path.dirname(__file__)
14
+ EIGEN3 = pwd + "/eigen-3.4-rc1/"
15
+ class CustomBuild(build_py):
16
+ def run(self):
17
+ url = "https://gitlab.com/libeigen/eigen/-/archive/3.4-rc1/eigen-3.4-rc1.tar.gz"
18
+ dest = pwd + "/eigen-3.4-rc1.tar.gz"
19
+ print("Downloading Eigen3 from %s to %s ..." % (url, dest))
20
+ urllib.request.urlretrieve(url, dest)
21
+ print("Extracting %s to %s ..." % (dest, EIGEN3))
22
+ with tarfile.open(dest) as tar:
23
+ tar.extractall(path = pwd) # Directory: eigen-3.4-rc1
24
+ super().run()
29
25
 
30
26
  ParallelCompile(
31
27
  "NPY_NUM_BUILD_JOBS",
32
28
  needs_recompile = naive_recompile
33
29
  ).install()
34
30
 
35
- os.chdir(pwd)
36
-
37
31
  MV_CPP = sorted(glob("src/*.cpp") + glob("src/*/*.cpp"))
38
32
  ext_modules = [ Pybind11Extension(
39
33
  "Maniverse",
@@ -53,7 +47,13 @@ setup(
53
47
  long_description = open("README.md").read(),
54
48
  long_description_content_type = "text/markdown",
55
49
  url = "https://github.com/FreemanTheMaverick/Maniverse.git",
50
+ cmdclass = {"build_py": CustomBuild},
56
51
  ext_modules = ext_modules,
57
- package_data={"": ["*.h"]},
52
+ packages = ["src", "src/Manifold", "src/Optimizer"],
53
+ package_data = {
54
+ "src": ["*.h"],
55
+ "src/Manifold": ["*.h"],
56
+ "src/Optimizer": ["*.h"],
57
+ },
58
58
  classifiers = ["Programming Language :: Python :: 3"]
59
59
  )
@@ -1 +0,0 @@
1
- recursive-include src *.h
@@ -1 +0,0 @@
1
- Maniverse
File without changes
File without changes
File without changes
File without changes