Skip to content

Commit df78779

Browse files
committed
Cleaning up path issues.
1 parent a3d3ab7 commit df78779

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

Sage_base/sage/Makefile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ ${STMP}/setup: notabot.cfg entitlements.plist
4141
touch ${STMP}/setup
4242

4343
${STMP}/finish: ${STMP}/python
44-
local/bin/python3 -m pip install setuptools
4544
cp pkgconfig/* local/lib/pkgconfig
4645
touch ${STMP}/finish
4746

@@ -87,7 +86,7 @@ ${STMP}/tcltk: ${STMP}/setup
8786

8887
${STMP}/xz: ${STMP}/setup
8988
bash xz/build_xz.sh
90-
python -m notabot.sign local/lib/liblzma.dylib
89+
python3 -m notabot.sign local/lib/liblzma.dylib
9190
touch ${STMP}/xz
9291

9392
${STMP}/python: ${STMP}/xz ${STMP}/openssl ${STMP}/tcltk

Sage_framework/build_sage_framework.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,15 +122,12 @@ popd
122122
# Fix up rpaths and shebangs
123123
echo "Rewriting load paths ..."
124124
source ../IDs.sh
125-
python3 fix_paths.py repo "${VERSION_DIR}"/local/bin 2> /dev/null
126-
python3 fix_paths.py repo "${VERSION_DIR}"/local/lib 2> /dev/null
127-
python3 fix_paths.py repo "${VERSION_DIR}"/local/libexec 2> /dev/null
128-
python3 fix_scripts.py "${VERSION_DIR}"/local/bin
125+
python3 fix_paths.py repo "${VERSION_DIR}"/local 2> /dev/null
129126

130127
# Some sagelib extension modules have bad rpaths
131128
ECL_SO="${SITE_PACKAGES}/sage/libs/ecl.cpython-${PY_VRSN}-darwin.so"
132129
macher clear_rpaths ${ECL_SO}
133-
macher add_rpath @loader_path/../../../../ ${ECL_SO}
130+
macher add_rpath @loader_path/../../../.. ${ECL_SO}
134131

135132
BLISS_SO="${SITE_PACKAGES}/sage/graphs/bliss.cpython-${PY_VRSN}-darwin.so"
136133
macher add_rpath @loader_path/../../../.. $BLISS_SO
@@ -152,7 +149,7 @@ xattr -rc ${BUILD}/Sage.framework
152149
find ${BUILD}/Sage.framework -name '*.pyc' -delete
153150

154151
# Fix up load paths
155-
python3 fix_paths.py repo/sage Frameworks/Sage.framework
152+
python3 fix_paths.py repo Frameworks/Sage.framework
156153

157154
echo "Starting Sage to create byte code files ..."
158155
"${SAGE_SYMLINK}"/local/bin/sage -c "print(2 + 2) ; exit"

Sage_framework/fix_paths.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def fix_files(directory):
201201
try:
202202
repo, directory = sys.argv[1], sys.argv[2]
203203
except IndexError:
204-
print('Usage python3 fixpaths.py repo <directory>')
204+
print('Usage python3 fixpaths.py <repo> <directory>')
205205
with open(os.path.join(repo, 'sage', 'VERSION.txt')) as input_file:
206206
sage_version = input_file.read().strip()
207207
LOCAL_LIB = LOCAL_LIB.replace('X.X', sage_version)

0 commit comments

Comments
 (0)