Skip to content

Commit

Permalink
Directory listing
Browse files Browse the repository at this point in the history
  • Loading branch information
Doug Greiman committed Apr 9, 2018
1 parent ab46c6e commit d187a68
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
11 changes: 7 additions & 4 deletions tools/piptool_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python -vv
#!/usr/bin/env python

# Copyright 2018 The Bazel Authors. All rights reserved.
#
Expand Down Expand Up @@ -55,7 +55,12 @@
]

# Safe to import
print("sys.path is %s" % str(sys.path))
import pprint
print("sys.modules")
pprint.pprint(sys.modules)
print("sys.path")
pprint.pprint(sys.path)
os.system("ls -lR %s" % os.path.dirname(os.path.dirname(__file__)))
assert 'setuptools' not in sys.modules, (sys.modules)
import setuptools
import pkg_resources
Expand All @@ -67,8 +72,6 @@
import pip
assert pip.__version__ == '9.0.3', (pip, pip.__version__)

# Sanity check that vendoring logic worked

# Invoke tool
import piptool
piptool.main()
9 changes: 7 additions & 2 deletions tools/whltool_wrapper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python -vv
#!/usr/bin/env python

# Copyright 2018 The Bazel Authors. All rights reserved.
#
Expand Down Expand Up @@ -55,7 +55,12 @@
]

# Safe to import
print("sys.path is %s" % str(sys.path))
import pprint
print("sys.modules")
pprint.pprint(sys.modules)
print("sys.path")
pprint.pprint(sys.path)
os.system("ls -lR %s" % os.path.dirname(os.path.dirname(__file__)))
assert 'setuptools' not in sys.modules, (sys.modules)
import setuptools
import pkg_resources
Expand Down

0 comments on commit d187a68

Please sign in to comment.