Skip to content

Commit

Permalink
Merge pull request #9 from mayank18049/automake
Browse files Browse the repository at this point in the history
Automake updates
  • Loading branch information
ofalk authored Jun 29, 2020
2 parents 37a4e44 + df089bd commit 9996959
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dnl
dnl configure.in
dnl
dnl Copyright (c) 2000 Dug Song <[email protected]>
dnl Copyright (c) 2019 Oliver Falk <[email protected]>
dnl
dnl $Id$

Expand Down
9 changes: 3 additions & 6 deletions python/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,13 @@ if PYTHON

noinst_SCRIPTS = python-build

$(srcdir)/dnet.c: $(srcdir)/dnet.pyx
pyrexc $(srcdir)/dnet.pyx

python-build: $(srcdir)/dnet.c
python-build:
$(PYTHON) setup.py build
touch python-build

python-clean:
rm -rf *build

rm -rf build dnet.c
clean: python-clean

distclean: clean
Expand All @@ -34,6 +31,6 @@ install-exec-local:

endif

EXTRA_DIST = dnet.pyx dnet.c setup.py.in test.py
EXTRA_DIST = dnet.pyx dnet.c setup.py.in test.py interfacefinder.py

DISTCLEANFILES = *~
2 changes: 1 addition & 1 deletion python/dnet.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ cdef class addr:
return addr_cmp(&x._addr, &y._addr) == 0

def __ne__(addr x, addr y):
return addr_cmp(&x._addr, &y._addr) == 0
return addr_cmp(&x._addr, &y._addr) != 0

def __lt__(addr x, addr y):
return addr_cmp(&x._addr, &y._addr) == -1
Expand Down

0 comments on commit 9996959

Please sign in to comment.