Skip to content

Commit

Permalink
fixing up standlone script, moving setuptools import to a safer place
Browse files Browse the repository at this point in the history
  • Loading branch information
toumorokoshi committed Jun 27, 2016
1 parent a160c21 commit b2efe53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
]

setup(name='uranium',
version='0.2.43b',
version='0.2.44b',
description='a build system for python',
long_description=open('README.rst').read(),
author='Yusuke Tsutsumi',
Expand Down
3 changes: 1 addition & 2 deletions uranium/scripts/uranium_standalone
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import sys
import tarfile
import tempfile
from optparse import (OptionParser, BadOptionError, AmbiguousOptionError)
from pkg_resources import VersionConflict

try:
from urllib2 import urlopen as urlopen
Expand Down Expand Up @@ -141,7 +140,7 @@ def main(argv):
def retrieve_system_uranium():
""" if uranium already exists on the system path, use that instead. """
try:
from pkg_resources import load_entry_point, DistributionNotFound
from pkg_resources import load_entry_point, DistributionNotFound, VersionConflict
try:
return load_entry_point("uranium", "console_scripts", "uranium")
except (ImportError, DistributionNotFound, VersionConflict):
Expand Down

0 comments on commit b2efe53

Please sign in to comment.