Skip to content
This repository was archived by the owner on Aug 26, 2020. It is now read-only.

Move processing of requirements file out to the specific container. - #39

Merged
lukmis merged 1 commit into
aws:masterfrom
lukmis:req_fix
May 2, 2018
Merged

lukmis merged 1 commit into
aws:masterfrom
lukmis:req_fix

Conversation

@lukmis

@lukmis lukmis commented May 1, 2018

Copy link
Copy Markdown
Contributor

Issue #, if available:
aws/sagemaker-python-sdk#139

Description of changes:
The code to process the requirement file must happen after the code is downloaded. Remove the
call here and add that in specific container. Related PR:
aws/sagemaker-tensorflow-training-toolkit#35

Add warning message when this file is not present.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

Add warning message when this file is not present.
output = subprocess.check_output(['pip', 'install', '-r', requirements_file])
logger.info(output)
else:
logger.warn('Requirements file:{} was not found'.format(requirements_file))

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: space after the colon or replace the colon with a space

@lukmis
lukmis merged commit 147bcbc into aws:master May 2, 2018
mvsusp added a commit that referenced this pull request Jun 1, 2018
* add container support code (#1)
* Add missing test dependencies to setup.py (#2)
* Add entry.py as script in setup.py so it can be invoked from our images (#3)
* Add data_files to setup.py to copy nginx config correctly + fix install_requires (#4)
* Move dependencies from extras_require to install_requires
* Copy in change from internal repo: support pip install requirements.txt (#5)
* Use package_data instead of data_files to package config files, refer to (#6)
* Add missing conf files (accidentally left out of previous commit) (#8)
* pip install requirements in training container (#11)
* Use container exit code to exit Trainer process. (#9)
* Add gunicorn and gevent as setup.py dependencies (#13)
* Specify version ranges for install_requires dependencies
* Add Apache license headers (#14)
* Add changelog (#15)
* Bump version to 1.0.0 (#16)
* Fix year in license headers (#18)
* Add README description (#20)
* Update version to 1.0.1 (#21)
* Read new TRAINING_JOB_NAME environment variable during training (#34)
* Bump version to 1.0.2 and update Changelog (#37)
* Move processing of requirements file out to the specific container. (#39)
* Bump version to 1.0.3 and update Changelog (#42)
* Change module name to string in __all__ (#50)
* Hardcode special case for tuning job hyperparameter (#54)
* Use strip() for more readability (#55)
This change is a small improvement upon #54
* Bump version to 1.0.4 (#56)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants