mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-08 12:01:56 +00:00
![David Naylor](/assets/img/avatar_default.png)
Port ChangeLog: * Sqlite3 added as a dependency * DIST_SUBDIR no longer used as upstream now releases with a proper tarball * Added ability to translate with pypy running in restricted memory mode ( faster than python2.7 and uses less memory!) * Added support for pypy modules that use cffi (_sqlite3 and _curses) Approved by: eadler,bdrewery (mentors, implicit)
33 lines
1.5 KiB
Python
33 lines
1.5 KiB
Python
--- pypy/sandbox/pypy_interact.py.orig 2012-06-07 14:24:48.000000000 +0200
|
|
+++ pypy/sandbox/pypy_interact.py 2012-07-02 21:08:19.000000000 +0200
|
|
@@ -22,11 +22,14 @@
|
|
|
|
import sys, os
|
|
sys.path.insert(0, os.path.realpath(os.path.join(os.path.dirname(__file__), '..', '..', '..')))
|
|
+from pypy.module.sys.version import PYPY_VERSION
|
|
from rpython.translator.sandbox.sandlib import SimpleIOSandboxedProc
|
|
from rpython.translator.sandbox.sandlib import VirtualizedSandboxedProc
|
|
from rpython.translator.sandbox.vfs import Dir, RealDir, RealFile
|
|
import pypy
|
|
LIB_ROOT = os.path.dirname(os.path.dirname(pypy.__file__))
|
|
+LIB_ROOT = os.path.join(LIB_ROOT, 'lib')
|
|
+LIB_ROOT = os.path.join(LIB_ROOT, 'pypy%d.%d' % PYPY_VERSION[:2])
|
|
|
|
class PyPySandboxedProc(VirtualizedSandboxedProc, SimpleIOSandboxedProc):
|
|
argv0 = '/bin/pypy-c'
|
|
@@ -56,10 +59,10 @@
|
|
return Dir({
|
|
'bin': Dir({
|
|
'pypy-c': RealFile(self.executable),
|
|
- 'lib-python': RealDir(os.path.join(libroot, 'lib-python'),
|
|
- exclude=exclude),
|
|
- 'lib_pypy': RealDir(os.path.join(libroot, 'lib_pypy'),
|
|
- exclude=exclude),
|
|
+ 'lib': Dir({
|
|
+ 'pypy%d.%d' % PYPY_VERSION[:2] : RealDir(libroot,
|
|
+ exclude=exclude)
|
|
+ })
|
|
}),
|
|
'tmp': tmpdirnode,
|
|
})
|