Skip to content

Commit

Permalink
Update setup.py - - find pyx
Browse files Browse the repository at this point in the history
  • Loading branch information
thierrymoudiki authored Apr 23, 2024
1 parent cfcc72a commit 025b341
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,13 +144,12 @@ def run(self):
]

# Get the absolute path to the directory containing the setup script
script_dir = os.path.basename(__file__)
# Get absolute paths to Cython source files
adaopt_cython_file = str(script_dir + 'mlsauce/adaopt/_adaoptc.pyx')
booster_cython_file = str(script_dir + 'mlsauce/booster/_boosterc.pyx')
lasso_cython_file = str(script_dir + 'mlsauce/lasso/_lassoc.pyx')
ridge_cython_file = str(script_dir + 'mlsauce/ridge/_ridgec.pyx')
stump_cython_file = str(script_dir + 'mlsauce/stump/_stumpc.pyx')
script_dir = os.path.dirname(os.path.realpath(__file__))
adaopt_cython_file = str(script_dir + '/mlsauce/adaopt/_adaoptc.pyx')
booster_cython_file = str(script_dir + '/mlsauce/booster/_boosterc.pyx')
lasso_cython_file = str(script_dir + '/mlsauce/lasso/_lassoc.pyx')
ridge_cython_file = str(script_dir + '/mlsauce/ridge/_ridgec.pyx')
stump_cython_file = str(script_dir + '/mlsauce/stump/_stumpc.pyx')
# Update Extension definitions with absolute paths
ext_modules2 = [
Extension(name="mlsauce.adaopt._adaoptc",
Expand Down

0 comments on commit 025b341

Please sign in to comment.