Skip to content

Commit db8e636

Browse files
authored
fix: harden install to use full paths, and windows separators on windows (googleapis#88)
1 parent 339b07d commit db8e636

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

setup.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,6 @@
2323
name = "google-api-core"
2424
description = "Google API client core library"
2525

26-
version = {}
27-
with open("google/api_core/version.py") as fp:
28-
exec(fp.read(), version)
29-
version = version['__version__']
30-
3126
# Should be one of:
3227
# 'Development Status :: 3 - Alpha'
3328
# 'Development Status :: 4 - Beta'
@@ -54,6 +49,12 @@
5449

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

52+
53+
version = {}
54+
with open(os.path.join(package_root, "google/api_core/version.py")) as fp:
55+
exec(fp.read(), version)
56+
version = version['__version__']
57+
5758
readme_filename = os.path.join(package_root, "README.rst")
5859
with io.open(readme_filename, encoding="utf-8") as readme_file:
5960
readme = readme_file.read()

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy