Commit c94331fe authored by Amir MOHAMMADI's avatar Amir MOHAMMADI

[utils] Numpy documentation webpage has moved

Fixes #74
parent 7e14085a
Pipeline #38052 passed with stage
in 3 minutes and 1 second
......@@ -483,14 +483,11 @@ def link_documentation(additional_packages = ['python', 'numpy'], requirements_f
try:
import numpy
ver = numpy.version.version
if smaller_than(ver, '1.5.z'):
ver = '.'.join(ver.split('.')[:-1]) + '.x'
else:
ver = '.'.join(ver.split('.')[:-1]) + '.0'
_add_index('numpy', 'https://docs.scipy.org/doc/numpy-%s/' % ver)
ver = '.'.join(ver.split('.')[:-1])
_add_index('numpy', 'https://numpy.org/doc/%s/' % ver)
except ImportError:
_add_index('numpy', 'https://docs.scipy.org/doc/numpy/')
_add_index('numpy', 'https://numpy.org/devdocs/')
def _add_scipy_index():
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment