Skip to content

Commit

Permalink
fix: harden install to use full paths, and windows separators on wind…
Browse files Browse the repository at this point in the history
…ows (#88)
  • Loading branch information
crwilcox committed Oct 6, 2020
1 parent 339b07d commit db8e636
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions setup.py
Expand Up @@ -23,11 +23,6 @@
name = "google-api-core"
description = "Google API client core library"

version = {}
with open("google/api_core/version.py") as fp:
exec(fp.read(), version)
version = version['__version__']

# Should be one of:
# 'Development Status :: 3 - Alpha'
# 'Development Status :: 4 - Beta'
Expand All @@ -54,6 +49,12 @@

package_root = os.path.abspath(os.path.dirname(__file__))


version = {}
with open(os.path.join(package_root, "google/api_core/version.py")) as fp:
exec(fp.read(), version)
version = version['__version__']

readme_filename = os.path.join(package_root, "README.rst")
with io.open(readme_filename, encoding="utf-8") as readme_file:
readme = readme_file.read()
Expand Down

0 comments on commit db8e636

Please sign in to comment.