Skip to content

Commit

Permalink
Closes #3228
Browse files Browse the repository at this point in the history
  • Loading branch information
robertwb committed May 26, 2017
2 parents c7a37b4 + 6ec64b9 commit b70e25c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdks/python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@

from pkg_resources import get_distribution, DistributionNotFound

import gen_protos


def get_version():
global_names = {}
Expand Down Expand Up @@ -127,6 +125,9 @@ def get_version():

# We must generate protos after setup_requires are installed.
def generate_protos_first(original_cmd):
# See https://issues.apache.org/jira/browse/BEAM-2366
# pylint: disable=wrong-import-position
import gen_protos
class cmd(original_cmd, object):
def run(self):
gen_protos.generate_proto_files()
Expand Down

0 comments on commit b70e25c

Please sign in to comment.