forked from brandon-rhodes/python-sgp4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
executable file
·32 lines (25 loc) · 713 Bytes
/
test.sh
File metadata and controls
executable file
·32 lines (25 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/bash
#
# We 'cd' to 'ci/' first so that Python doesn't import the 'sgp4'
# package source code from the current directory.
set -e
export PYTHONDONTWRITEBYTECODE=dont
# Python 2.
(
set -e
python2.7 setup.py install --prefix ci/legacy
cd ci
PYTHONPATH=legacy/lib/python2.7/site-packages python2.7 -m sgp4.tests
)
# Python 3, using pure-Python SGP4 implementation.
PYTHON_SGP4_COMPILE=never uv run \
--directory ci \
--with ..,numpy \
--reinstall-package sgp4 \
-m unittest sgp4.tests
# Python 3, using the compiled C++ SGP4 implementation.
PYTHON_SGP4_COMPILE=always uv run \
--directory ci \
--with ..,numpy \
--reinstall-package sgp4 \
-m unittest sgp4.tests