History log of /external/autotest/utils/build_externals.py
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
16c0a50cc87997fb6dd3cd7aa4b9cef3ca6bc7dd 15-Jul-2015 Dan Shi <dshi@chromium.org> [autotest] Upgrade setuptools and make errors more visible

setuptools is too old, upgrade it to latest.
Allow _build_and_install to return a tuple of success, error_message.
Then build_externals can print the error at the end as well.

BUG=chromium:510143
TEST=local test

Change-Id: Ia750fd333e6d0d9d137a68b49fafc441094f07bc
Reviewed-on: https://chromium-review.googlesource.com/285646
Tested-by: Dan Shi <dshi@chromium.org>
Reviewed-by: Fang Deng <fdeng@chromium.org>
Commit-Queue: Fang Deng <fdeng@chromium.org>
/external/autotest/utils/build_externals.py
65bec4faec544562a1378018a2d81dc1723bd143 08-Apr-2010 lmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4> utils/build_externals.py fixes

* Getting rid of unused sha import that causes deprecation messages.
* Replaced print with appropriate logging calls.

Risk: Low (Small, tested change for consistency sake).

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4380 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
ff6e5aa0035294673366922b504aaf31c7200ab4 12-Feb-2010 jamesren <jamesren@592f7852-d20e-0410-864c-8624ca9c26a4> Refactored build_externals to support site-specific packages. Package declarations are now in external_packages.py and site_external_packages.py; build_externals.py is just the base script.

Also added functions to support building packages using make.

Signed-off-by: Steve Howard <showard@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4238 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
6f80e7a07b277d54cbc88069122b12849fd4832e 04-Feb-2010 lmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4> Autotest: Porting all hash operations to use utils.hash

Replace all functions that evaluate md5 and sha1 hexdigests
with the function utils.hash().

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4204 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
9adeb3caf186add8e200a39dafad03863f0fe4e6 03-Feb-2010 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Add httplib2 to build_externals. This is needed for the REST client.

Signed-off-by: Steve Howard <showard@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4197 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
19841977ef4d476c48b7f62207f9c81183871f46 11-Jan-2010 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Remove the bundled version of simplejson on the autotest
tree, in order to be coherent with the general policy of
just requiring that the server admin install external
dependencies. For simplejson, it's not necessary to
maintain the module on our tree, since we are mostly
using a version very close to upstream 2.0.9.

Also, added simplejson to utils/build_externals.py, to
make installation straightforward in case one doesn't
want/can use the package shipped by the distro.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4088 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
78f5b016b5367cb51b1f031b31e3afea6ebd2d74 23-Dec-2009 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Update to Django 1.1.1. I want to use a new feature for my RESTful interface prototyping (direct inclusion of URL patterns in URLconfs).

The one obstacle this presented was that Django 1.1.1 changes the DB connection object to accept DB config information in its constructor, rather than reading it from django.conf.settings on-demand. This was a problem because we change stuff in django.conf.settings on the fly to do our fancy test DB stuff -- basically, we initialize a SQLite DB once, copy it off, and then copy it between test cases, rather than clearing and reconstructing the initial DB. I did measurements and it turns out all that jazz wasn't really saving us much time at all, so I just got rid of it all. Django's testing stuff has improved and v1.1 even has some new tricks for using transactions to accomplish the above with a dramatic speedup, so we ought to look into using that in the future.

Signed-off-by: Steve Howard <showard@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@4041 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
b2649f97ece9c4df662519b00ea0e15c7619dd84 28-Oct-2009 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Upgrade to Django 1.0.4. In the course of normal development I ran into this Django bug:

http://code.djangoproject.com/ticket/9188

It seems to have been fixed between 1.0.2 and 1.0.4. For reference, it can be reproduced on 1.0.2 with our AFE DB using this simple script:

import common
from autotest_lib.frontend import setup_django_environment
from autotest_lib.frontend import setup_test_environment
from autotest_lib.frontend.afe import models

setup_test_environment.set_up()

# this will raise an OperationalError if the bug is present
print models.SpecialTask.objects.exclude(host__hostqueueentry__active=True)

Signed-off-by: Steve Howard <showard@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3886 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
7ebba66308d314e90a34eb4ab27494b2ed2a7c9f 23-Oct-2009 lmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4> Fix a bug in build_externals, it wasn't updating PYTHONPATH

Fix a bug in build_externals, it wasn't updating PYTHONPATH so the
launched python processes to run setup.py and such were not seeing the
site-packages directory. This prevented matplotlib from seeing the
just built and installed numpy module.

This bug was introduced when the 'import common' was added to this
module as that already inserted site-packages into sys.path.

Signed-off-by: Gregory Smith <gps@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3879 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
e5699e244b6e93050e2e862c4af583dd0c2e15d1 18-Sep-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Make build_externals.py to use the logging manager library
so it can configure the logging system the same way other
entry points already do.

Signed-off-by: Lucas Meneghel Rodrigues <lmr@redhat.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3740 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
61364426f868e03ccca4c09773a8a6d7297bf300 09-Sep-2009 showard <showard@592f7852-d20e-0410-864c-8624ca9c26a4> Update build_externals with GWT 1.7.0.

Signed-off-by: James Ren <jamesren@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3678 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
fd3870734521e4c9152630c019b7e7134e2a180f 03-Sep-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Minor cosmetic fix about libmysqlclient15-dev name in
build_externals.py.

Signed-off-by: Mihai Rusu <dizzy@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3652 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
beb687dce94953a737ed465c063af3172f2c8c0f 03-Sep-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Update the atfork version, a couple bugfixes to it were necessary before
we could use it.

Signed-off-by: Gregory Smith <gps@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3636 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
6631273af8b88842cbd6202cc4615daf050cc957 27-Aug-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Make a bunch of stuff executable



git-svn-id: http://test.kernel.org/svn/autotest/trunk@3621 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
db530ccba1edb3c75fa3af6b1851112ea8d46954 25-Aug-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Adds the python-atfork package and renames a couple of methods that
didn't really need to have the exact file format in their names.

Signed-off-by: Gregory Smith <gps@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3613 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
f51b289db0c2916097fea7e740c3aea4081fb4b9 25-Aug-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Upgrade to Paramiko 1.7.5

Signed-off-by: Rachel Kroll <rkroll@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3602 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
36cec88c5c94f57cb0d6e00624ec2b491a089c87 25-Aug-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> minor refactoring, make a generic method available via the base class.

Signed-off-by: Gregory Smith <gps@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3600 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
f341fd14ab56403b84e5f6141b04a2e1ff4cad55 11-Aug-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Add support for checking for some files on the OS first prior to
building packages and displaying an error message suggesting how to
satisfy those dependencies if they are not found.

Gives a useful error message instead of a random matplotlib build failure.

Signed-off-by: Gregory Smith <gps@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3525 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
279e5331f315affec8bede1740984e126a0ab80a 29-Jul-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Fix SourceForge links in build_externals.py. SourceForge seems to have
changed their link structure.

Risk: low
Visibility: low

Signed-off-by: James Ren <jamesren@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3475 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
b155d0c3570294705bc97180ea4ea49e2e06f58f 02-Jul-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Add paramiko and GWT to build_externals.

Signed-off-by: Gregory Smith <gps@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3362 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
489e0e007f1e20d7a4a9845a45442371d2eff5be 08-Jun-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Python setuptools were not getting correct permissions after
build_externals. Also added a new flag (INSTALL_ALL), which forces
build_externals to install every package, even if the system already has
a sufficiently recent package.

Risk: low
Visibility: medium (functionality change)

Signed-off-by: James Ren <jamesren@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3213 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
3916b26353881331a85ec2017baae18bcb0c84cf 08-Jun-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Check for mysql_config and tell the user what to do if it is not found.

Signed-off-by: Gregory Smith <gps@google.com>


git-svn-id: http://test.kernel.org/svn/autotest/trunk@3205 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
623c51826f36cd41345335b7d940d07de484f52d 07-Feb-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> Adds numpy and matplot lib (used by new_tko) to the modules built and
installed. Refactors some common code out in the process.

Signed-off-by: Gregory Smith <gps@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2761 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py
fa29d66e325f0841e5d912770028f7f4082fc1f5 05-Feb-2009 mbligh <mbligh@592f7852-d20e-0410-864c-8624ca9c26a4> This overkill of a "script" will fetch, build and install python
libraries that autotest depends on. Currently this can deal with
setuptools, MySQLdb, and Django. It can be expanded in the future
as needed.

NOTE: This installs django 1.0.2. Don't use this script for that
until after my next change which ports autotest to Django 1.0.2.

TESTING:
I'm running a frontend on a Ubuntu dapper host and it is using
the MySQLdb and Django packages installed locally in my
autotest/site-packages directory by this script rather than anything
installed in the system's /usr/lib/python2.4/site-packages.

Signed-off-by: Gregory Smith <gps@google.com>



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2748 592f7852-d20e-0410-864c-8624ca9c26a4
/external/autotest/utils/build_externals.py