mirror of
https://github.com/facebook/sapling.git
synced 2024-10-06 14:58:03 +03:00
Fix setup.py warning
This commit is contained in:
parent
a5b3ab332d
commit
e2bdd30747
6
setup.py
6
setup.py
@ -17,6 +17,8 @@ import mercurial.version
|
||||
import mercurial.demandimport
|
||||
mercurial.demandimport.enable = lambda: None
|
||||
|
||||
extra = {}
|
||||
|
||||
# py2exe needs to be installed to work
|
||||
try:
|
||||
import py2exe
|
||||
@ -35,6 +37,8 @@ try:
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
extra['console'] = ['hg']
|
||||
|
||||
except ImportError:
|
||||
pass
|
||||
|
||||
@ -70,4 +74,4 @@ setup(name='mercurial',
|
||||
license='COPYING',
|
||||
readme='contrib/macosx/Readme.html',
|
||||
welcome='contrib/macosx/Welcome.html')),
|
||||
console=['hg'])
|
||||
**extra)
|
||||
|
Loading…
Reference in New Issue
Block a user