Skip to content

Commit

Permalink
Inlined importlib import
Browse files Browse the repository at this point in the history
  • Loading branch information
jlstevens committed Mar 9, 2018
1 parent d1b902d commit e8a217f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion setup.py
@@ -1,6 +1,6 @@
#!/usr/bin/env python

import sys, os, json
import sys, os
import shutil
from collections import defaultdict
try:
Expand Down Expand Up @@ -53,6 +53,7 @@ def get_setup_version(reponame):
Helper to get the current version from either git describe or the
.version file (if available).
"""
import importlib
basepath = os.path.split(__file__)[0]
embed_version(basepath)
version = importlib.import_module("version")
Expand Down

0 comments on commit e8a217f

Please sign in to comment.