indhub closed pull request #12604: Remove pip overwrites
URL: https://github.com/apache/incubator-mxnet/pull/12604
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/docs/build_version_doc/AddVersion.py
b/docs/build_version_doc/AddVersion.py
index f5e28dfff95..f429d34a735 100755
--- a/docs/build_version_doc/AddVersion.py
+++ b/docs/build_version_doc/AddVersion.py
@@ -87,30 +87,5 @@
outstr = outstr.replace('http://mxnet.io',
'https://mxnet.incubator.apache.org/'
'versions/%s' %
(args.current_version))
- # Fix git clone and pip installation to specific tag
- pip_pattern = ['', '-cu80', '-cu75', '-cu80mkl', '-cu75mkl',
'-mkl']
- if args.current_version == 'master':
- outstr = outstr.replace('git clone --recursive
https://github.com/dmlc/mxnet',
- 'git clone --recursive
https://github.com/apache/incubator-mxnet.git mxnet')
- for trail in pip_pattern:
- outstr = outstr.replace('pip install mxnet%s<' % (trail),
- 'pip install mxnet%s --pre<' %
(trail))
- outstr = outstr.replace('pip install mxnet%s\n<' % (trail),
- 'pip install mxnet%s --pre\n<' %
(trail))
- else:
- outstr = outstr.replace('git clone --recursive
https://github.com/dmlc/mxnet',
- 'git clone --recursive
https://github.com/apache/incubator-mxnet.git mxnet '
- '--branch %s' % (args.current_version))
- for trail in pip_pattern:
- outstr = outstr.replace('pip install mxnet%s<' % (trail),
- 'pip install mxnet%s==%s<' %
(trail, args.current_version))
- outstr = outstr.replace('pip install mxnet%s\n<' % (trail),
- 'pip install mxnet%s==%s\n<' %
(trail, args.current_version))
-
- # Add tag for example link
- outstr =
outstr.replace('https://github.com/apache/incubator-mxnet/tree/master/example',
-
'https://github.com/apache/incubator-mxnet/tree/%s/example' %
- (args.current_version))
-
with open(os.path.join(path, name), "w") as outf:
outf.write(outstr)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services