当我运行' python3 setup.py sdist'在空闲的python shell中我收到错误 SyntaxError:无效语法(,第1行)
我得到了一个类似的问题@ This Question
但我的代码是: 我的setup.py包含:
from distutils.core import setup
setup( name = 'inester', version = '1.0.0', py_modules = ['inester'], author = 'Abhimanyu')
和我的inester.py包含:
import sys
def print_lol(the_list, indent=False, level=0, fh=sys.stdout):
for each_item in the_list:
if isinstance(each_item, list):
print_lol(each_item, indent, level+1, fh)
else:
if indent:
for tab_stop in range(level):
print("\t", end='', file=fh)
print(each_item, file=fh)