[Yt-svn] commit/yt: MatthewTurk: Adding lxml to the bootstrap_dev script
Bitbucket
commits-noreply at bitbucket.org
Wed Mar 23 11:58:11 PDT 2011
1 new changeset in yt:
http://bitbucket.org/yt_analysis/yt/changeset/7e0d55ce83a9/
changeset: r3882:7e0d55ce83a9
branch: yt
user: MatthewTurk
date: 2011-03-23 19:56:03
summary: Adding lxml to the bootstrap_dev script
affected #: 1 file (429 bytes)
--- a/yt/utilities/command_line.py Tue Mar 22 17:24:55 2011 -0400
+++ b/yt/utilities/command_line.py Wed Mar 23 13:56:03 2011 -0500
@@ -870,6 +870,18 @@
if rv == 1:
print "Unable to install Pygments. Please report this bug to yt-users."
sys.exit(1)
+ try:
+ import lxml
+ install_lxml = False
+ except ImportError:
+ install_lxml = True
+ if install_lxml:
+ print "You are missing the lxml package. Installing."
+ import pip
+ rv = pip.main(["install", "lxml"])
+ if rv == 1:
+ print "Unable to install lxml. Please report this bug to yt-users."
+ sys.exit(1)
print
print "All done!"
print
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list