Skip to content

Commit

Permalink
Update install paths
Browse files Browse the repository at this point in the history
  • Loading branch information
dzalkind committed Jan 3, 2024
1 parent 25900db commit a0976fe
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def build_extension(self, ext):
raise RuntimeError('Cannot find CMake executable')

# Refresh build directory
localdir = os.path.join(this_directory, 'ROSCO','install')
localdir = os.path.join(this_directory, 'rosco','controller','install')
os.makedirs(localdir, exist_ok=True)

cmake_args = ['-DBUILD_SHARED_LIBS=OFF']
Expand All @@ -97,7 +97,7 @@ def build_extension(self, ext):
else:
raise ValueError("Unable to find the system's Fortran compiler.")

self.build_temp = os.path.join( os.path.dirname( os.path.realpath(__file__) ), 'ROSCO', 'build')
self.build_temp = os.path.join( os.path.dirname( os.path.realpath(__file__) ), 'rosco', 'controller', 'build')
os.makedirs(localdir, exist_ok=True)
# Need fresh build directory for CMake
os.makedirs(self.build_temp, exist_ok=True)
Expand All @@ -108,7 +108,7 @@ def build_extension(self, ext):


# All of the extensions
roscoExt = CMakeExtension('rosco','ROSCO')
roscoExt = CMakeExtension('rosco',os.path.join('rosco','controller'))

# The rest you shouldn't have to touch too much :)
# ------------------------------------------------
Expand Down

0 comments on commit a0976fe

Please sign in to comment.