Ignore .pyx files in .pyenv

This commit is contained in:
Giuseppe Guerra 2018-04-13 23:38:05 +02:00
parent ea4e2bd4fd
commit 1a4e952e4f
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import os
cythonExt = []
for root, dirs, files in os.walk(os.getcwd()):
for file in files:
if file.endswith(".pyx"):
if file.endswith(".pyx") and ".pyenv" not in root: # im sorry
filePath = os.path.relpath(os.path.join(root, file))
cythonExt.append(Extension(filePath.replace("/", ".")[:-4], [filePath]))