On Sat, May 29, 2010 at 11:32 -0600, Maciej Fijalkowski wrote: > Hm. > > I might be missing something, but I thought sys.prefix is only meant > for stuff after installation. If this is true (my CPython trunk build > has sys.prefix == '/usr/local'), then modifying source checkout does > not make any sense, since it's only about installation (which we don't > really support anyway).
I think the idea is to make sys.prefix (and thus virtualenv) work even with a translation in a checkout, i.e. not forcing to copy things to another location (which virtualenv partly does on its own). Moreover, keeping app-level modules (and maybe pypy/module at some point) outside the main (interpreter, objspaces, translation and JIT) PyPy tree makes sense to me. e.g. pypy/lang would probably not need to access anything outside such a pypy tree, for example, or am i mistaken? best, holger > On Fri, May 28, 2010 at 7:53 AM, <[email protected]> wrote: > > Author: antocuni > > Date: Fri May 28 15:53:54 2010 > > New Revision: 74850 > > > > Added: > > pypy/branch/sys-prefix/lib/ > > pypy/branch/sys-prefix/lib/README > > pypy/branch/sys-prefix/lib/pypy1.2/ > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/ > > - copied from r74817, pypy/branch/sys-prefix/pypy/lib/ > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/_sre.py > > - copied unchanged from r74837, pypy/branch/sys-prefix/pypy/lib/_sre.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/py (contents, props changed) > > Removed: > > > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/ctypes_config_cache/autopath.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/identity_dict.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/test2/test_identitydict.py > > Modified: > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/__init__.py > > > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/inprogress_test_binascii_extra.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_binascii.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_coroutine.py > > > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_ctypes_support.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_datetime.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_dbm_extra.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_defaultdict.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_deque_extra.py > > > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_exception_extra.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_functools.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_hashlib.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_locale.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_marshal_extra.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_md5_extra.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_pyexpat.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_resource.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_runpy.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_sha_extra.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_stackless.py > > > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_stackless_pickling.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_struct_extra.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_structseq.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/app_test/test_syslog.py > > > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/ctypes_config_cache/hashlib.ctc.py > > > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/ctypes_config_cache/locale.ctc.py > > > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/ctypes_config_cache/pyexpat.ctc.py > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/ctypes_config_cache/rebuild.py > > > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/ctypes_config_cache/resource.ctc.py > > > > pypy/branch/sys-prefix/lib/pypy1.2/lib_pypy/ctypes_config_cache/syslog.ctc.py > > Log: > > move pypy/lib/ to lib/pypy1.2/lib_pypy (part 1 of many). > > The final goal is to be able to use pypy-trunk as sys.prefix, so > > pypy-trunk/lib plays the role of /usr/lib in a normal system-wide > > installation. > > > > Since pypy.lib is no longer directly importable, all the tests in app_test > > now > > rely on relative imports to import the modules they are testing. > > > > There are still issues left; e.g., test_runpy fails, and the app-level tests > > in test2 should be moved somewhere else, because they need pypy/conftest.py > > to > > work > > > > > > > _______________________________________________ > [email protected] > http://codespeak.net/mailman/listinfo/pypy-dev -- _______________________________________________ [email protected] http://codespeak.net/mailman/listinfo/pypy-dev
