Skip to content

Commit 1eb6dc0

Browse files
committed
Dealing with load paths.
1 parent a884a49 commit 1eb6dc0

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Sage_base/sage/tcltk/build_tcltk.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ fi
3636

3737
pushd Tcl/unix
3838
./configure \
39+
ZIPFS_BUILD=0 \
3940
CFLAGS=-mmacosx-version-min=10.13 \
4041
--prefix ${INSTALL_PREFIX}\
4142
--disable-zipfs
@@ -44,6 +45,7 @@ popd
4445

4546
pushd Tk/unix
4647
./configure \
48+
ZIPFS_BUILD=0 \
4749
CFLAGS=-mmacosx-version-min=10.13 \
4850
MACHER_PROG=/usr/bin/true \
4951
--enable-aqua \

Sage_framework/fix_paths.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import re
55
LOCAL_LIB = '/private/var/tmp/sage-X.X-current/local/lib'
66
get_info = re.compile(b'Filetype: (?P<filetype>.*)| *LC_LOAD_DYLIB: (?P<dylib>.*)| *LC_RPATH: (?P<rpath>.*)')
7-
get_version = re.compile(r'SageMath version ([0-9]*\.[0-9]*)')
87

98
# Bigendian encoding of the magic numbers for mach-O binaries
109
feedface_big = b'\xfe\xed\xfa\xce'
@@ -204,8 +203,6 @@ def fix_files(directory):
204203
except IndexError:
205204
print('Usage python3 fixpaths.py repo <directory>')
206205
with open(os.path.join(repo, 'sage', 'VERSION.txt')) as input_file:
207-
m = get_version.match(input_file.readline())
208-
sage_version = m.groups()[0]
206+
sage_version = input_file.read().strip()
209207
LOCAL_LIB = LOCAL_LIB.replace('X.X', sage_version)
210-
repo = os.path.abspath(repo)
211208
fix_files(directory)

jinja/templates/kernel.jinja2

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"argv": ["/var/tmp/sage-{{ sage_version }}-current/local/bin/python3",
2+
"argv": ["/var/tmp/sage-{{ sage_version }}-current/venv/bin/sage", "--python",
33
"-m",
44
"sage.repl.ipython_kernel",
55
"-f",

0 commit comments

Comments
 (0)