Skip to content

Commit

Permalink
Merge pull request #4030 from hugovk/python310-compatibility
Browse files Browse the repository at this point in the history
Fix for Python 3.10
  • Loading branch information
radarhere committed Aug 20, 2019
2 parents cb7d8d6 + cd99def commit aec17ed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion setup.py
Expand Up @@ -432,7 +432,9 @@ def build_extensions(self):
# pythonX.Y.dll.a is in the /usr/lib/pythonX.Y/config directory
_add_directory(
library_dirs,
os.path.join("/usr/lib", "python%s" % sys.version[:3], "config"),
os.path.join(
"/usr/lib", "python{}.{}".format(*sys.version_info), "config"
),
)

elif sys.platform == "darwin":
Expand Down

0 comments on commit aec17ed

Please sign in to comment.