Skip to content

Commit

Permalink
Fix hashbangs to python3 (#37)
Browse files Browse the repository at this point in the history
* Fix hashbangs to python3

* bump version

* fix failing test
  • Loading branch information
bennahugo authored Jan 4, 2022
1 parent 5ac7886 commit 7ab9f8f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
5 changes: 3 additions & 2 deletions .travis/py3.docker
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@ FROM kernsuite/base:5

RUN docker-apt-install libblitz0-dev python3-dev libblas-dev liblapack-dev libqdbm-dev wcslib-dev \
libfftw3-dev python3-numpy libcfitsio-dev libboost-all-dev libboost-system-dev cmake g++ wget gfortran \
libncurses5-dev libsofa1-dev bison libbison-dev flex libreadline6-dev python3-pip
libncurses5-dev libsofa1-dev bison libbison-dev flex libreadline6-dev python3-pip python3-pyqt4 python3-pyqt5

RUN pip3 install -U pip setuptools wheel

# casacore wheels no longer work and we need python 3 support, so build from source
#####################################################################
Expand All @@ -14,7 +16,6 @@ RUN wget https://github.com/casacore/casacore/archive/v3.3.0.tar.gz
RUN tar xvf v3.3.0.tar.gz
RUN mkdir casacore-3.3.0/build
WORKDIR /src/casacore-3.3.0/build
RUN echo hello
RUN cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release -DBUILD_DEPRECATED=ON -DBUILD_PYTHON3=ON -DBUILD_PYTHON=OFF ../
RUN make -j 4
RUN make install
Expand Down
2 changes: 1 addition & 1 deletion Purr/Plugins/local_pychart/theme.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def get_options(argv=None):
"|--debug-level=|<N>", "|bbox=|<left,bottom,right,top>".
The below code shows an example.
#!/usr/bin/python
#!/usr/bin/env python3
from pychart import *
args = theme.get_options()
ar = area.T(...)
Expand Down
2 changes: 1 addition & 1 deletion Purr/purr.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python
#!/usr/bin/env python3
# -*- coding: utf-8 -*-

# loading file into karma:
Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3

import os
from distutils.core import setup
Expand All @@ -22,7 +22,7 @@
scheme['data'] = scheme['purelib']

setup(name='purr',
version='1.5.2',
version='1.5.3',
description='Data reduction logging tool, Useful for remembering reductions',
author='Oleg Smirnov',
author_email='Oleg Smirnov <osmirnov@gmail.com>',
Expand Down

0 comments on commit 7ab9f8f

Please sign in to comment.