Closed Bug 795329 Opened 12 years ago Closed 12 years ago

Add 'which' method to mozfile

Categories

(Testing :: Mozbase, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: ahal, Assigned: ahal)

Details

Attachments

(1 file)

I've needed this in a few places, and I'd like to use it when finding the proper adb binary in b2g automation (since adb tends to get installed all over the place).

https://hg.mozilla.org/build/mozharness/file/bb5df91e065e/mozharness/base/script.py#l302
Attachment #665911 - Flags: review?(jhammel)
OS: Linux → All
Hardware: x86_64 → All
Comment on attachment 665911 [details] [diff] [review]
Patch 1.0 - Add which method

+deps = ['mozinfo >= 0.3.3']

Any particular reason for this version number?  Since we don't have a versioning story yet I'd prefer to leave it unpegged as mozinfo.isWin has been there for time immemorial
I'm not opposed to taking this if we really need it, but there is a 3rd party which, http://pypi.python.org/pypi/which , which is also in-tree, https://mxr.mozilla.org/mozilla-central/source/python/which/ . :ahal, what software were you planning on using this for?  Is the 3rd party `which` sufficient?
I guess that is fine. Is the third party which already available in the m-c virtualenv?
On the other hand, this might be something that could eventually be removed from the tree and consolidated into mozbase. Not that I'm volunteering or anything :p
yep: https://mxr.mozilla.org/mozilla-central/source/build/virtualenv/packages.txt#14

not sure how/if it can be used from packaged tests, but i'm sure that is doable
(In reply to Andrew Halberstadt [:ahal] from comment #5)
> On the other hand, this might be something that could eventually be removed
> from the tree and consolidated into mozbase. Not that I'm volunteering or
> anything :p

In general, I would like us to use 3rd party packages if/when possible.  Hopefully this can cut down our maintenance burden
Comment on attachment 665911 [details] [diff] [review]
Patch 1.0 - Add which method

I'm going to take this down for review until we figure out if we want this.  If there is a needed use case, I think we should take it
Attachment #665911 - Flags: review?(jhammel)
Ping....any reason not to close this?
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: