aniposelib-pytorch 0.9.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.
aniposelib/__init__.py ADDED
@@ -0,0 +1,26 @@
1
+ #!/usr/bin/env python3
2
+
3
+ # aniposelib-pytorch provides the `aniposelib` import, so it cannot coexist with the
4
+ # classic numpy `aniposelib` distribution (one would overwrite the other's files).
5
+ # The only allowed `aniposelib` distribution is the file-less placeholder 0.0.1 that
6
+ # aniposelib-pytorch depends on.
7
+ from importlib import metadata as _md
8
+ try:
9
+ _classic_version = _md.version('aniposelib')
10
+ except _md.PackageNotFoundError:
11
+ _classic_version = None
12
+ if _classic_version is not None and _classic_version != '0.0.1':
13
+ raise ImportError(
14
+ "Classic 'aniposelib' {} is installed alongside 'aniposelib-pytorch'. Both provide "
15
+ "the 'aniposelib' import, so one has overwritten the other's files. Fix with:\n"
16
+ " pip uninstall -y aniposelib aniposelib-pytorch && pip install aniposelib-pytorch\n"
17
+ "and replace any 'aniposelib' requirement (e.g. 'aniposelib>=0.7.0') with "
18
+ "'aniposelib-pytorch'.".format(_classic_version))
19
+ del _md, _classic_version
20
+
21
+ __version__ = '0.9.0'
22
+ VERSION = __version__
23
+ DISTRIBUTION = 'aniposelib-pytorch'
24
+ BACKEND = 'torch'
25
+
26
+ from . import boards, cameras, utils