Skip to content

Commit

Permalink
Merge pull request #17 from cvxgrp/ms-python-module
Browse files Browse the repository at this point in the history
__init__.py in <code_dir>
  • Loading branch information
maxschaller authored Apr 2, 2023
2 parents 1126adf + 6285179 commit 0abe37b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cvxpygen/cpg.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def generate_code(problem, code_dir='CPG_code', solver=None, unroll=False, prefi
for d in ['src', 'include']:
os.mkdir(os.path.join(code_dir, 'cpp', d))
shutil.copy(os.path.join(cvxpygen_directory, 'template', 'CMakeLists.txt'), os.path.join(code_dir, 'c'))
for file in ['setup.py', 'README.html']:
for file in ['setup.py', 'README.html', '__init__.py']:
shutil.copy(os.path.join(cvxpygen_directory, 'template', file), code_dir)

# problem data
Expand Down
Empty file added cvxpygen/template/__init__.py
Empty file.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

MAJOR = 0
MINOR = 2
MICRO = 1
MICRO = 2
VERSION = '%d.%d.%d' % (MAJOR, MINOR, MICRO)


Expand Down

0 comments on commit 0abe37b

Please sign in to comment.