Skip to content

Commit

Permalink
Merge pull request #90 from maciejkula/cythonize_text_mode
Browse files Browse the repository at this point in the history
Use text mode for cythonize.
  • Loading branch information
maciejkula committed Jun 3, 2016
2 parents 8a3338c + 8332ee5 commit e166dd6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,12 @@ def generate_pyx(self):
'lightfm')

with open(os.path.join(file_dir,
'_lightfm_fast.pyx.template'), 'rb') as fl:
'_lightfm_fast.pyx.template'), 'r') as fl:
template = fl.read()

for variant, template_params in params:
with open(os.path.join(file_dir,
'_lightfm_fast_{}.pyx'.format(variant)), 'wb') as fl:
'_lightfm_fast_{}.pyx'.format(variant)), 'w') as fl:
fl.write(template.format(**template_params))

def run(self):
Expand Down

0 comments on commit e166dd6

Please sign in to comment.