-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Conversation
Fixed handling of MXNET_TAG. If not set latest from master will be cloned to local directory. If a tag is specified, that tag will be used to clone the repository. Tested with MXNET_TAG="1.0.0.rc0"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see a couple of minor things that could improve usability and those are commented in the specific lines.
Outside of this, there seems to be a problem with the installation in two parts, the function that returns the version may be misreporting, and when running the installation twice in the same environment, the first version remains active.
This line states the version installed at the end of the script:
https://github.com/srochel/incubator-mxnet/blob/44813dd69fd6b3e7c9b98b56a55bced7f955fbdd/setup-utils/install-mxnet-osx-python.sh#L455
My results:
The results at the end (see just below) are unexpected since the version should be master with no tag used, or whatever the last build id was, right (not 0.12.1)?
SUCCESS: MXNet test passed
SUCCESS: MXNet is successfully installed and works fine!
SUCCESS: MXNet Version is: 0.12.1
END: Test MXNet
Using your example tag, this is the return at the end, which is truncated. We lost the rc0 part.
SUCCESS: MXNet test passed
SUCCESS: MXNet is successfully installed and works fine!
SUCCESS: MXNet Version is: 1.0.0
END: Test MXNet
Then when running that same version check manually I get the older version:
(mxnet3.6) 8c8590217d26:setup-utils markhama$ echo "import mxnet as mx; print(mx.version)" | python
0.12.1
Edit: it seems that version call seems like it is misreporting because of the context switch, but either way I think it might be better to change that line 455 to read:
git describe --tags
This way you get the full representation of whatever tag was used.
echo "MXNET Tag = ${MXNET_TAG}" | ||
echo "You can set \$MXNET_TAG to the appropriate github repo tag" | ||
echo "If not set, the default value used is the latest version on master" | ||
echo " " |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It tells you what version it is about to install without a y/n prompt, and I think it would be good to include that, so users now seeing that they can use an env var to switch versions they won’t have to break out of the script manually to do so (and that’s if they even notice it). Here's an example prompt.
#echo "If not set, the default value used is the latest release" | ||
echo " " | ||
echo "MXNET Tag = ${MXNET_TAG}" | ||
echo "You can set \$MXNET_TAG to the appropriate github repo tag" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you provide the specific command example like export MXNET_TAG=”1.0.0.rc0”
.
@srochel Any updates? |
added following modifications: a) added selection for reporting list of available tags b) moved the tag selection into the introduction section open: still need to resolve proper installation of the build version
Added check if mxnet was already installed on the system (e.g. pip install), as this might interfere with the attempt to download and install a new version. Performed manual tests, all passing. This is a final commit.
empty change to trigger build.
another dummy change to fight the CI system.
* Update install-mxnet-osx-python.sh Fixed handling of MXNET_TAG. If not set latest from master will be cloned to local directory. If a tag is specified, that tag will be used to clone the repository. Tested with MXNET_TAG="1.0.0.rc0" * Update install-mxnet-osx-python.sh added following modifications: a) added selection for reporting list of available tags b) moved the tag selection into the introduction section open: still need to resolve proper installation of the build version * Update install-mxnet-osx-python.sh Added check if mxnet was already installed on the system (e.g. pip install), as this might interfere with the attempt to download and install a new version. Performed manual tests, all passing. This is a final commit. * Update install-mxnet-osx-python.sh empty change to trigger build. * Update install-mxnet-osx-python.sh another dummy change to fight the CI system.
* Update install-mxnet-osx-python.sh Fixed handling of MXNET_TAG. If not set latest from master will be cloned to local directory. If a tag is specified, that tag will be used to clone the repository. Tested with MXNET_TAG="1.0.0.rc0" * Update install-mxnet-osx-python.sh added following modifications: a) added selection for reporting list of available tags b) moved the tag selection into the introduction section open: still need to resolve proper installation of the build version * Update install-mxnet-osx-python.sh Added check if mxnet was already installed on the system (e.g. pip install), as this might interfere with the attempt to download and install a new version. Performed manual tests, all passing. This is a final commit. * Update install-mxnet-osx-python.sh empty change to trigger build. * Update install-mxnet-osx-python.sh another dummy change to fight the CI system.
* Update install-mxnet-osx-python.sh Fixed handling of MXNET_TAG. If not set latest from master will be cloned to local directory. If a tag is specified, that tag will be used to clone the repository. Tested with MXNET_TAG="1.0.0.rc0" * Update install-mxnet-osx-python.sh added following modifications: a) added selection for reporting list of available tags b) moved the tag selection into the introduction section open: still need to resolve proper installation of the build version * Update install-mxnet-osx-python.sh Added check if mxnet was already installed on the system (e.g. pip install), as this might interfere with the attempt to download and install a new version. Performed manual tests, all passing. This is a final commit. * Update install-mxnet-osx-python.sh empty change to trigger build. * Update install-mxnet-osx-python.sh another dummy change to fight the CI system.
* Update install-mxnet-osx-python.sh Fixed handling of MXNET_TAG. If not set latest from master will be cloned to local directory. If a tag is specified, that tag will be used to clone the repository. Tested with MXNET_TAG="1.0.0.rc0" * Update install-mxnet-osx-python.sh added following modifications: a) added selection for reporting list of available tags b) moved the tag selection into the introduction section open: still need to resolve proper installation of the build version * Update install-mxnet-osx-python.sh Added check if mxnet was already installed on the system (e.g. pip install), as this might interfere with the attempt to download and install a new version. Performed manual tests, all passing. This is a final commit. * Update install-mxnet-osx-python.sh empty change to trigger build. * Update install-mxnet-osx-python.sh another dummy change to fight the CI system.
* Update install-mxnet-osx-python.sh Fixed handling of MXNET_TAG. If not set latest from master will be cloned to local directory. If a tag is specified, that tag will be used to clone the repository. Tested with MXNET_TAG="1.0.0.rc0" * Update install-mxnet-osx-python.sh added following modifications: a) added selection for reporting list of available tags b) moved the tag selection into the introduction section open: still need to resolve proper installation of the build version * Update install-mxnet-osx-python.sh Added check if mxnet was already installed on the system (e.g. pip install), as this might interfere with the attempt to download and install a new version. Performed manual tests, all passing. This is a final commit. * Update install-mxnet-osx-python.sh empty change to trigger build. * Update install-mxnet-osx-python.sh another dummy change to fight the CI system.
Fixed handling of MXNET_TAG. If not set latest from master will be cloned to local directory. If a tag is specified, that tag will be used to clone the repository.
Tested with
MXNET_TAG="1.0.0.rc0" and MXNET_TAG not set in local environment
Description
Fixed handling of MXNET_TAG. If not set latest from master will be cloned to local directory. If a tag is specified, that tag will be used to clone the repository.
Checklist
Essentials
make lint
)Changes
Comments
I will work with Aaron to update documentation.