Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added reset to I2C loopback test;

changed IPOL name to conform to Microchip documentation;
left virtualenv and Makefile as they were,
so they should still work for Chris Boot's image
  • Loading branch information...
commit c4e16bbef986b25fdf3b7a1341e2f01ec00c3106 1 parent 621ccaa
Romilly Cocking authored
Showing with 413 additions and 242 deletions.
  1. +20 −8 test/quick2wire/test_i2c_loopback.py
  2. +393 −234 tools/virtualenv
View
28 test/quick2wire/test_i2c_loopback.py
@@ -19,10 +19,16 @@
# Registers
IODIR=0x00
-IOPOL=0x01
-IOCON = 0x05
+IPOL=0x01
+GPINTEN=0x02
+DEFVAL=0x03
+INTCON=0x04
+IOCON=0x05
+GPPU=0x06
+INTF=0x07
+INTCAP=0x08
GPIO=0x09
-
+OLAT=0x0A
def write_register(master, reg, b):
master.transaction(
@@ -33,9 +39,14 @@ def read_register(master, reg):
i2c.writing_bytes(address, reg),
i2c.reading(address, 1))[0][0]
+def reset(master):
+ write_register(master, IODIR, 0xFF) # default setting
+ for register in [IPOL, GPINTEN, DEFVAL, INTCON, IOCON, GPPU, INTF, INTCAP, GPIO, OLAT]:
+ write_register(master, register, 0) # all the other registers default sttings are 0
+
def set_low_bits_as_output(master):
write_register(master, IODIR, 0xF0)
-
+
def set_high_bits_as_output(master):
write_register(master, IODIR, 0x0F)
@@ -57,8 +68,7 @@ def test_mcp23008_loopback_via_i2c_master_api():
bitpatterns = [(1 << i) for i in range(0,4)]
with i2c.I2CMaster() as master:
- # ensure IOPOL is set to default
- write_register(master, IOPOL, 0x00)
+ reset(master)
set_low_bits_as_output(master)
for bitpattern in bitpatterns:
set_low_bits(master, bitpattern)
@@ -73,11 +83,12 @@ def test_mcp23008_loopback_via_i2c_master_api():
@pytest.mark.loopback
def test_mcp23008_multibyte_reads():
with i2c.I2CMaster() as master:
+ reset(master)
# Ensure sequential addressing mode is on
write_register(master, IOCON, 0x00)
write_register(master, IODIR, 0xFF)
- write_register(master, IOPOL, 0xAA)
+ write_register(master, IPOL, 0xAA)
# Read two bytes, the IODIR register and, thanks to sequential
# addressing mode, the next register, IOPOL
@@ -92,6 +103,7 @@ def test_mcp23008_multibyte_reads():
@pytest.mark.loopback
def test_mcp23008_multibyte_writes():
with i2c.I2CMaster() as master:
+ reset(master)
# Ensure sequential addressing mode is on
write_register(master, IOCON, 0x00)
@@ -101,7 +113,7 @@ def test_mcp23008_multibyte_writes():
i2c.writing_bytes(address, IODIR, 0xFF, 0xAA))
iodir_state = read_register(master, IODIR)
- iopol_state = read_register(master, IOPOL)
+ iopol_state = read_register(master, IPOL)
assert iodir_state == 0xFF
assert iopol_state == 0xAA
View
627 tools/virtualenv
@@ -4,11 +4,13 @@
# If you change the version here, change it in setup.py
# and docs/conf.py as well.
-virtualenv_version = "1.7.1.2"
+__version__ = "1.7.2" # following best practices
+virtualenv_version = __version__ # legacy, again
import base64
import sys
import os
+import codecs
import optparse
import re
import shutil
@@ -18,6 +20,7 @@ import zlib
import errno
import distutils.sysconfig
from distutils.util import strtobool
+import struct
try:
import subprocess
@@ -443,7 +446,7 @@ def writefile(dest, content, overwrite=True):
f = open(dest, 'rb')
c = f.read()
f.close()
- if c != content:
+ if c != content.encode("utf-8"):
if not overwrite:
logger.notify('File %s exists with different content; not overwriting', dest)
return
@@ -487,7 +490,7 @@ def _install_req(py_executable, unzip=False, distribute=False,
source = None
else:
setup_fn = None
- source = 'distribute-0.6.24.tar.gz'
+ source = 'distribute-0.6.27.tar.gz'
project_name = 'distribute'
bootstrap_script = DISTRIBUTE_SETUP_PY
@@ -568,6 +571,8 @@ def _install_req(py_executable, unzip=False, distribute=False,
finally:
logger.indent -= 2
logger.end_progress()
+ if cwd is not None:
+ shutil.rmtree(cwd)
if os.getcwd() != old_chdir:
os.chdir(old_chdir)
if is_jython and os._name == 'nt':
@@ -616,9 +621,18 @@ def install_pip(py_executable, search_dirs=None, never_download=False):
easy_install_script = 'easy_install'
if sys.platform == 'win32':
easy_install_script = 'easy_install-script.py'
- cmd = [join(os.path.dirname(py_executable), easy_install_script), filename]
- if sys.platform == 'win32':
- cmd.insert(0, py_executable)
+ # There's two subtle issues here when invoking easy_install.
+ # 1. On unix-like systems the easy_install script can *only* be executed
+ # directly if its full filesystem path is no longer than 78 characters.
+ # 2. A work around to [1] is to use the `python path/to/easy_install foo`
+ # pattern, but that breaks if the path contains non-ASCII characters, as
+ # you can't put the file encoding declaration before the shebang line.
+ # The solution is to use Python's -x flag to skip the first line of the
+ # script (and any ASCII decoding errors that may have occurred in that line)
+ cmd = [py_executable, '-x', join(os.path.dirname(py_executable), easy_install_script), filename]
+ # jython and pypy don't yet support -x
+ if is_jython or is_pypy:
+ cmd.remove('-x')
if filename == 'pip':
if never_download:
logger.fatal("Can't find any local distributions of pip to install "
@@ -754,7 +768,7 @@ class ConfigOptionParser(optparse.OptionParser):
# Old, pre-Optik 1.5 behaviour.
return optparse.Values(self.defaults)
- defaults = self.update_defaults(self.defaults.copy()) # ours
+ defaults = self.update_defaults(self.defaults.copy()) # ours
for option in self._get_all_options():
default = defaults.get(option.dest)
if isinstance(default, basestring):
@@ -802,7 +816,7 @@ def main():
dest='no_site_packages',
action='store_true',
help="Don't give access to the global site-packages dir to the "
- "virtual environment")
+ "virtual environment (default; deprecated)")
parser.add_option(
'--system-site-packages',
@@ -825,7 +839,7 @@ def main():
'This fixes up scripts and makes all .pth files relative')
parser.add_option(
- '--distribute',
+ '--distribute', '--use-distribute', # the second option is for legacy reasons here. Hi Kenneth!
dest='use_distribute',
action='store_true',
help='Use Distribute instead of Setuptools. Set environ variable '
@@ -848,7 +862,7 @@ def main():
"if local distributions of setuptools/distribute/pip are not present.")
parser.add_option(
- '--prompt=',
+ '--prompt',
dest='prompt',
help='Provides an alternative prompt prefix for this environment')
@@ -863,7 +877,7 @@ def main():
adjust_options(options, args)
verbosity = options.verbose - options.quiet
- logger = Logger([(Logger.level_for_integer(2-verbosity), sys.stdout)])
+ logger = Logger([(Logger.level_for_integer(2 - verbosity), sys.stdout)])
if options.python and not os.environ.get('VIRTUALENV_INTERPRETER_RUNNING'):
env = os.environ.copy()
@@ -1030,9 +1044,7 @@ def create_environment(home_dir, site_packages=False, clear=False,
install_distutils(home_dir)
- # use_distribute also is True if VIRTUALENV_DISTRIBUTE env var is set
- # we also check VIRTUALENV_USE_DISTRIBUTE for backwards compatibility
- if use_distribute or os.environ.get('VIRTUALENV_USE_DISTRIBUTE'):
+ if use_distribute:
install_distribute(py_executable, unzip=unzip_setuptools,
search_dirs=search_dirs, never_download=never_download)
else:
@@ -1065,7 +1077,7 @@ def path_locations(home_dir):
lib_dir = join(home_dir, 'Lib')
inc_dir = join(home_dir, 'Include')
bin_dir = join(home_dir, 'Scripts')
- elif is_jython:
+ if is_jython:
lib_dir = join(home_dir, 'Lib')
inc_dir = join(home_dir, 'Include')
bin_dir = join(home_dir, 'bin')
@@ -1073,7 +1085,7 @@ def path_locations(home_dir):
lib_dir = home_dir
inc_dir = join(home_dir, 'include')
bin_dir = join(home_dir, 'bin')
- else:
+ elif sys.platform != 'win32':
lib_dir = join(home_dir, 'lib', py_version)
inc_dir = join(home_dir, 'include', py_version + abiflags)
bin_dir = join(home_dir, 'bin')
@@ -1250,7 +1262,7 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear):
if os.path.exists(pyd_pth):
logger.info('Deleting %s (not Windows env or not build directory python)' % pyd_pth)
os.unlink(pyd_pth)
-
+
if sys.executable != py_executable:
## FIXME: could I just hard link?
executable = sys.executable
@@ -1295,9 +1307,17 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear):
if is_pypy:
# make a symlink python --> pypy-c
python_executable = os.path.join(os.path.dirname(py_executable), 'python')
+ if sys.platform in ('win32', 'cygwin'):
+ python_executable += '.exe'
logger.info('Also created executable %s' % python_executable)
copyfile(py_executable, python_executable)
+ if sys.platform == 'win32':
+ for name in 'libexpat.dll', 'libpypy.dll', 'libpypy-c.dll', 'libeay32.dll', 'ssleay32.dll', 'sqlite.dll':
+ src = join(prefix, name)
+ if os.path.exists(src):
+ copyfile(src, join(bin_dir, name))
+
if os.path.splitext(os.path.basename(py_executable))[0] != expected_exe:
secondary_exe = os.path.join(os.path.dirname(py_executable),
expected_exe)
@@ -1340,15 +1360,23 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear):
# And then change the install_name of the copied python executable
try:
- call_subprocess(
- ["install_name_tool", "-change",
- os.path.join(prefix, 'Python'),
- '@executable_path/../.Python',
- py_executable])
+ mach_o_change(py_executable,
+ os.path.join(prefix, 'Python'),
+ '@executable_path/../.Python')
except:
- logger.fatal(
- "Could not call install_name_tool -- you must have Apple's development tools installed")
- raise
+ e = sys.exc_info()[1]
+ logger.warn("Could not call mach_o_change: %s. "
+ "Trying to call install_name_tool instead." % e)
+ try:
+ call_subprocess(
+ ["install_name_tool", "-change",
+ os.path.join(prefix, 'Python'),
+ '@executable_path/../.Python',
+ py_executable])
+ except:
+ logger.fatal("Could not call install_name_tool -- you must "
+ "have Apple's development tools installed")
+ raise
# Some tools depend on pythonX.Y being present
py_executable_version = '%s.%s' % (
@@ -1372,17 +1400,9 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear):
# argument that has a space in it. Instead we have to quote
# the value:
py_executable = '"%s"' % py_executable
- cmd = [py_executable, '-c', """
-import sys
-prefix = sys.prefix
-if sys.version_info[0] == 3:
- prefix = prefix.encode('utf8')
-if hasattr(sys.stdout, 'detach'):
- sys.stdout = sys.stdout.detach()
-elif hasattr(sys.stdout, 'buffer'):
- sys.stdout = sys.stdout.buffer
-sys.stdout.write(prefix)
-"""]
+ # NOTE: keep this check as one line, cmd.exe doesn't cope with line breaks
+ cmd = [py_executable, '-c', 'import sys;out=sys.stdout;'
+ 'getattr(out, "buffer", out).write(sys.prefix.encode("utf-8"))']
logger.info('Testing executable with %s %s "%s"' % tuple(cmd))
try:
proc = subprocess.Popen(cmd,
@@ -1394,7 +1414,7 @@ sys.stdout.write(prefix)
logger.fatal('ERROR: The executable %s could not be run: %s' % (py_executable, e))
sys.exit(100)
else:
- raise e
+ raise e
proc_stdout = proc_stdout.strip().decode("utf-8")
proc_stdout = os.path.normcase(os.path.abspath(proc_stdout))
@@ -1430,6 +1450,7 @@ sys.stdout.write(prefix)
return py_executable
+
def install_activate(home_dir, bin_dir, prompt=None):
home_dir = os.path.abspath(home_dir)
if sys.platform == 'win32' or is_jython and os._name == 'nt':
@@ -1444,7 +1465,7 @@ def install_activate(home_dir, bin_dir, prompt=None):
home_dir_msys = (drive and "/%s%s" or "%s%s") % (drive[:1], tail)
# Run-time conditional enables (basic) Cygwin compatibility
- home_dir_sh = ("""$(if [ "$OSTYPE" "==" "cygwin" ]; then cygpath -u '%s'; else echo '%s'; fi;)""" %
+ home_dir_sh = ("""$(if [ "$OSTYPE" "==" "cygwin" ]; then cygpath -u '%s'; else echo '%s'; fi;)""" %
(home_dir, home_dir_msys))
files['activate'] = ACTIVATE_SH.replace('__VIRTUAL_ENV__', home_dir_sh)
@@ -1658,7 +1679,7 @@ def fixup_pth_file(filename):
def fixup_egg_link(filename):
f = open(filename)
- link = f.read().strip()
+ link = f.readline().strip()
f.close()
if os.path.abspath(link) != link:
logger.debug('Link in %s already relative' % filename)
@@ -1750,7 +1771,7 @@ def create_bootstrap_script(extra_text, python_version=''):
filename = __file__
if filename.endswith('.pyc'):
filename = filename[:-1]
- f = open(filename, 'rb')
+ f = codecs.open(filename, 'r', encoding='utf-8')
content = f.read()
f.close()
py_exe = 'python%s' % python_version
@@ -1852,57 +1873,57 @@ TpQY7vfqZYGrJFUu2hFOm2GZWvwYWRnWwiwrs3anDVLYbUMUR5lhlpieV1RL6vME8DI9TTgkglgJ
z0mYDDxv6KZ5bYoHs3QOehRULijUCQgJEhcPAxLnFTnnwItKmTNE8LDcVunVqsZ9Bugc0/kFbP7j
8eez0/dU0//iZet1DzDnhCKBCddzHGG1HmY74ItbgYdcNZ0O8ax+hTBQ+8Cf7isuFDniAXr9OLG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EMcW1xKr/he4/6
+IQ6FUXP+0gkioHY5iwC9Eyx3HKO7af0zPPe+XyLnZDUk46jB7uZthV8rp+wuKxYMCxnzL9Vk9s4=
""")
##file distutils.cfg
@@ -2266,6 +2286,145 @@ YdN2dEngUlbC4PG60M1WEN0piu7Nq7on0mgyyUw3iV1etLo6r/81biWdQ9MWHFaePWZYaq+nmp+t
s3az+sj7eA0jfgPfeoN1
""")
+MH_MAGIC = 0xfeedface
+MH_CIGAM = 0xcefaedfe
+MH_MAGIC_64 = 0xfeedfacf
+MH_CIGAM_64 = 0xcffaedfe
+FAT_MAGIC = 0xcafebabe
+BIG_ENDIAN = '>'
+LITTLE_ENDIAN = '<'
+LC_LOAD_DYLIB = 0xc
+maxint = majver == 3 and getattr(sys, 'maxsize') or getattr(sys, 'maxint')
+
+
+class fileview(object):
+ """
+ A proxy for file-like objects that exposes a given view of a file.
+ Modified from macholib.
+ """
+
+ def __init__(self, fileobj, start=0, size=maxint):
+ if isinstance(fileobj, fileview):
+ self._fileobj = fileobj._fileobj
+ else:
+ self._fileobj = fileobj
+ self._start = start
+ self._end = start + size
+ self._pos = 0
+
+ def __repr__(self):
+ return '<fileview [%d, %d] %r>' % (
+ self._start, self._end, self._fileobj)
+
+ def tell(self):
+ return self._pos
+
+ def _checkwindow(self, seekto, op):
+ if not (self._start <= seekto <= self._end):
+ raise IOError("%s to offset %d is outside window [%d, %d]" % (
+ op, seekto, self._start, self._end))
+
+ def seek(self, offset, whence=0):
+ seekto = offset
+ if whence == os.SEEK_SET:
+ seekto += self._start
+ elif whence == os.SEEK_CUR:
+ seekto += self._start + self._pos
+ elif whence == os.SEEK_END:
+ seekto += self._end
+ else:
+ raise IOError("Invalid whence argument to seek: %r" % (whence,))
+ self._checkwindow(seekto, 'seek')
+ self._fileobj.seek(seekto)
+ self._pos = seekto - self._start
+
+ def write(self, bytes):
+ here = self._start + self._pos
+ self._checkwindow(here, 'write')
+ self._checkwindow(here + len(bytes), 'write')
+ self._fileobj.seek(here, os.SEEK_SET)
+ self._fileobj.write(bytes)
+ self._pos += len(bytes)
+
+ def read(self, size=maxint):
+ assert size >= 0
+ here = self._start + self._pos
+ self._checkwindow(here, 'read')
+ size = min(size, self._end - here)
+ self._fileobj.seek(here, os.SEEK_SET)
+ bytes = self._fileobj.read(size)
+ self._pos += len(bytes)
+ return bytes
+
+
+def read_data(file, endian, num=1):
+ """
+ Read a given number of 32-bits unsigned integers from the given file
+ with the given endianness.
+ """
+ res = struct.unpack(endian + 'L' * num, file.read(num * 4))
+ if len(res) == 1:
+ return res[0]
+ return res
+
+
+def mach_o_change(path, what, value):
+ """
+ Replace a given name (what) in any LC_LOAD_DYLIB command found in
+ the given binary with a new name (value), provided it's shorter.
+ """
+
+ def do_macho(file, bits, endian):
+ # Read Mach-O header (the magic number is assumed read by the caller)
+ cputype, cpusubtype, filetype, ncmds, sizeofcmds, flags = read_data(file, endian, 6)
+ # 64-bits header has one more field.
+ if bits == 64:
+ read_data(file, endian)
+ # The header is followed by ncmds commands
+ for n in range(ncmds):
+ where = file.tell()
+ # Read command header
+ cmd, cmdsize = read_data(file, endian, 2)
+ if cmd == LC_LOAD_DYLIB:
+ # The first data field in LC_LOAD_DYLIB commands is the
+ # offset of the name, starting from the beginning of the
+ # command.
+ name_offset = read_data(file, endian)
+ file.seek(where + name_offset, os.SEEK_SET)
+ # Read the NUL terminated string
+ load = file.read(cmdsize - name_offset)
+ load = load[:load.index('\0')]
+ # If the string is what is being replaced, overwrite it.
+ if load == what:
+ file.seek(where + name_offset, os.SEEK_SET)
+ file.write(value + '\0')
+ # Seek to the next command
+ file.seek(where + cmdsize, os.SEEK_SET)
+
+ def do_file(file, offset=0, size=maxint):
+ file = fileview(file, offset, size)
+ # Read magic number
+ magic = read_data(file, BIG_ENDIAN)
+ if magic == FAT_MAGIC:
+ # Fat binaries contain nfat_arch Mach-O binaries
+ nfat_arch = read_data(file, BIG_ENDIAN)
+ for n in range(nfat_arch):
+ # Read arch header
+ cputype, cpusubtype, offset, size, align = read_data(file, BIG_ENDIAN, 5)
+ do_file(file, offset, size)
+ elif magic == MH_MAGIC:
+ do_macho(file, 32, BIG_ENDIAN)
+ elif magic == MH_CIGAM:
+ do_macho(file, 32, LITTLE_ENDIAN)
+ elif magic == MH_MAGIC_64:
+ do_macho(file, 64, BIG_ENDIAN)
+ elif magic == MH_CIGAM_64:
+ do_macho(file, 64, LITTLE_ENDIAN)
+
+ assert(len(what) >= len(value))
+ do_file(open(path, 'r+b'))
+
+
if __name__ == '__main__':
main()
Please sign in to comment.
Something went wrong with that request. Please try again.