mirror of
https://github.com/yann64/haikuports.git
synced 2026-04-15 16:20:08 +02:00
Also: - switch from setup.py to build/installer. - ran --test and added results for reference.
34 lines
961 B
Plaintext
34 lines
961 B
Plaintext
From 9403554020974f5a26ad6682b7bd27a4b6fe99e2 Mon Sep 17 00:00:00 2001
|
|
From: Oscar Lesta <oscar.lesta@gmail.com>
|
|
Date: Tue, 4 Feb 2025 04:39:40 -0300
|
|
Subject: Fix calling Python on Haiku.
|
|
|
|
Haiku's "default Python" package do not currently provide /bin/python.
|
|
|
|
diff --git a/tests/run-doctests.py b/tests/run-doctests.py
|
|
index 7cc39e2..4921614 100644
|
|
--- a/tests/run-doctests.py
|
|
+++ b/tests/run-doctests.py
|
|
@@ -1,4 +1,4 @@
|
|
-#!/usr/bin/env python
|
|
+#!/usr/bin/env python3
|
|
|
|
import doctest
|
|
import os
|
|
diff --git a/tests/setup.sh b/tests/setup.sh
|
|
index 4ecf32f..33a7539 100644
|
|
--- a/tests/setup.sh
|
|
+++ b/tests/setup.sh
|
|
@@ -6,7 +6,7 @@
|
|
|
|
# The $PYTHON environment variable should be set when running this test
|
|
# from Python.
|
|
-[ -n "$PYTHON" ] || PYTHON="`which python`"
|
|
+[ -n "$PYTHON" ] || PYTHON="`which python3`"
|
|
[ -n "$PYTHONPATH" ] || PYTHONPATH="$TESTDIR/.." && export PYTHONPATH
|
|
if [ -n "$COVERAGE" ]; then
|
|
if [ -z "$COVERAGE_FILE" ]; then
|
|
--
|
|
2.45.2
|
|
|