We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6950a1 commit ad1c96aCopy full SHA for ad1c96a
setup.py
@@ -24,8 +24,12 @@
24
25
from setuptools import setup
26
27
-# Get package version
28
-from pybobyqa import __version__
+# Get package version without "import pybobyqa" (which requires dependencies to already be installed)
+import os
29
+version = {}
30
+with open(os.path.join('pybobyqa', 'version.py')) as fp:
31
+ exec(fp.read(), version)
32
+__version__ = version['__version__']
33
34
setup(
35
name='Py-BOBYQA',
0 commit comments