Skip to content

Commit

Permalink
Use "pip install" instead of "python setup.py install"
Browse files Browse the repository at this point in the history
Add python3-pip as build dependency
  • Loading branch information
stephankramer committed Oct 31, 2022
1 parent 81c34df commit 5df64df
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: |
echo "Europe/London" > /etc/timezone
apt-get -y update
DEBIAN_FRONTEND=noninteractive apt-get -y install gfortran g++ python3-setuptools python3-all-dev debhelper dh-python texlive python3-junit.xml
DEBIAN_FRONTEND=noninteractive apt-get -y install gfortran g++ python3-setuptools python3-pip python3-all-dev debhelper dh-python texlive python3-junit.xml
- name: Configuring
run: ./configure --prefix=/tmp
Expand Down
6 changes: 3 additions & 3 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -95,13 +95,13 @@ install-spudtools:
@INSTALL@ -m644 schema/spud_base.rng $(DESTDIR)@prefix@/share/spud

install-diamond:
cd diamond; python3 setup.py install --prefix=$(DESTDIR)@prefix@; cd ..
python3 -mpip install --prefix=$(DESTDIR)@prefix@ diamond/

install-pyspud:
cd python; python3 setup.py install --prefix=$(DESTDIR)@prefix@; cd ..
python3 -mpip install --prefix=$(DESTDIR)@prefix@ python/

install-dxdiff:
cd dxdiff; python3 setup.py install --prefix=$(DESTDIR)@prefix@; cd ..
python3 -mpip install --prefix=$(DESTDIR)@prefix@ dxdiff/

clean:
@cd doc; $(MAKE) clean
Expand Down
2 changes: 1 addition & 1 deletion debian/control
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Maintainer: The ICOM team <patrick.farrell@imperial.ac.uk>
Uploaders: David Ham <david.ham@imperial.ac.uk>
Section: science
Priority: optional
Build-Depends: gfortran (>=4.2), g++ (>=4.2), python3-setuptools (>= 39), python3-all-dev (>= 2.3.5-11), debhelper (>= 5.0.38), dh-python, texlive
Build-Depends: gfortran (>=4.2), g++ (>=4.2), python3-setuptools (>= 39), python3-pip, python3-all-dev , debhelper (>= 5.0.38), dh-python, texlive
Standards-Version: 3.8.0
X-Python3-Version: >= 3.6

Expand Down
4 changes: 1 addition & 3 deletions python/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,4 @@
version='1.1.3',
description='Python bindings for libspud',
ext_modules=[Extension('libspud', sources=['libspud.c'],
libraries=["spud"],
library_dirs=[abspath("..")],
include_dirs=[abspath("../include")])])
libraries=["spud"])])

0 comments on commit 5df64df

Please sign in to comment.