Make basic C builds work on Windows without Cygwin
Bug #1216448 reported by
Matt Jones
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Raise |
Fix Released
|
Critical
|
Unassigned |
Bug Description
Make it work on Windows. Make sure it does not need the Cygwin/Mingw stuff installed or in the path to work.
It will need to have pure python replacements for commands such as 'which', 'locate', 'whoami', 'grep', et cetera
summary: |
- Make it work on Windows without Cygwin + Make basic C builds work on Windows without Cygwin |
Changed in raise: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Something like this can be used for 'which': get('PATHEXT' , '').split( os.pathsep) ) get('PATH' , None) get('PATH' , '').split( os.pathsep) : append( pext)
def which(name):
result = []
exts = filter(None, os.environ.
path = os.environ.
if path is None:
return []
for p in os.environ.
p = os.path.join(p, name)
print(p)
if os.access(p, os.X_OK):
result.append(p)
for e in exts:
pext = p + e
if os.access(pext, os.X_OK):
result.
return result