11#!/usr/bin/env python
22# -*- encoding: utf-8 -*-
3- from __future__ import absolute_import
4- from __future__ import print_function
3+ from __future__ import absolute_import , print_function
54
65import io
76import os
87import re
98from glob import glob
10- from os .path import basename
11- from os .path import dirname
12- from os .path import join
13- from os .path import relpath
14- from os .path import splitext
9+ from os .path import basename , dirname , join , relpath , splitext
1510
16- from setuptools import Extension
17- from setuptools import find_packages
18- from setuptools import setup
11+ from setuptools import Extension , find_packages , setup
1912
2013
2114def read (* names , ** kwargs ):
2215 with io .open (
23- join (dirname (__file__ ), * names ),
24- encoding = kwargs .get ("encoding" , "utf8" ),
16+ join (dirname (__file__ ), * names ), encoding = kwargs .get ("encoding" , "utf8" ),
2517 ) as fh :
2618 return fh .read ()
2719
@@ -33,9 +25,7 @@ def read(*names, **kwargs):
3325 os .environ ["CFLAGS" ] = os .environ ["SETUPPY_CFLAGS" ]
3426
3527if "CFLAGS" in os .environ :
36- os .environ ["CFLAGS" ] = " " .join (
37- (os .environ ["CFLAGS" ], "-DMEMWIPER_DEBUG=1" )
38- )
28+ os .environ ["CFLAGS" ] = " " .join ((os .environ ["CFLAGS" ], "-DMEMWIPER_DEBUG=1" ))
3929else :
4030 os .environ ["CFLAGS" ] = "-DMEMWIPER_DEBUG=1"
4131
0 commit comments