diff --git a/Makefile b/Makefile index ab17662..8f7384a 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,11 @@ NUMCPUS := $(shell grep -c '^process' /proc/cpuinfo) TESTS ?= tests/ # set test options, eg. to "--nologcapture" TESTOPTS= +# test for nose achievements plugin and use it if available +NOSE_ACHIEVEMENTS:=$(shell nosetests --plugins | grep achievements) +ifeq ($(strip $(NOSE_ACHIEVEMENTS)),Plugin achievements) +TESTOPTS += --with-achievements +endif all: diff --git a/setup.cfg b/setup.cfg deleted file mode 100644 index a89e77c..0000000 --- a/setup.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[nosetests] -;with-achievements=1