X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=setup.py;h=24f939c9535256a1944a9d4ab198a750a46210ec;hb=refs%2Fheads%2Fmaster;hp=4a9d1f3e40e2a7061e877999b5fc618f8aa244d1;hpb=0a2d962b3b9c396f45b6ef3e1d435bb63b83a15d;p=pyplnet.git diff --git a/setup.py b/setup.py index 4a9d1f3..24f939c 100644 --- a/setup.py +++ b/setup.py @@ -1,15 +1,15 @@ -#!/usr/bin/python +#!/usr/bin/python3 # # Setup script for pyplnet # # Daniel Hokka Zakrisson # Copyright (C) 2008 The Trustees of Princeton University # -# $Id$ -# + +# pylint: disable=c0111, c0103 import os -from distutils.core import setup, Extension +from distutils.core import setup from distutils.cmd import Command from distutils.command.sdist import sdist @@ -39,19 +39,17 @@ class bdist_rpmspec(Command): if self.rpmdef is not None: command.extend(["--define", self.rpmdef]) command.append(sdist.get_archive_files()[0]) - print "running '%s'" % "' '".join(command) + print("running '%s'" % "' '".join(command)) if not self.dry_run: os.spawnvp(os.P_WAIT, "rpmbuild", command) setup( name='pyplnet', version='4.3', - ext_modules=[ - Extension('sioc', ['sioc.c']), - ], py_modules=[ - 'plnet', - 'modprobe', + 'plnet', + 'modprobe', + 'sioc', ], cmdclass={'sdist': my_sdist, 'bdist_rpmspec': bdist_rpmspec}, - ) +)