Skip to content

Commit

Permalink
Closes #1200
Browse files Browse the repository at this point in the history
  • Loading branch information
robertwb committed Oct 31, 2016
2 parents 00b17e5 + 32f3214 commit ef01140
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion sdks/python/apache_beam/utils/dependency.py
Expand Up @@ -476,7 +476,13 @@ def _download_pypi_sdk_package(temp_dir):
"""Downloads SDK package from PyPI and returns path to local path."""
# TODO(silviuc): Handle apache-beam versions when we have official releases.
import pkg_resources as pkg
version = pkg.get_distribution(GOOGLE_PACKAGE_NAME).version
try:
version = pkg.get_distribution(GOOGLE_PACKAGE_NAME).version
except pkg.DistributionNotFound:
raise RuntimeError('Please set --sdk_location command-line option '
'or install a valid {} distribution.'
.format(GOOGLE_PACKAGE_NAME))

# Get a source distribution for the SDK package from PyPI.
cmd_args = [
_get_python_executable(), '-m', 'pip', 'install', '--download', temp_dir,
Expand Down

0 comments on commit ef01140

Please sign in to comment.