Skip to content

Commit

Permalink
another setup.py fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nadavbh12 committed Feb 14, 2017
1 parent d52569f commit e06e57f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ if(USE_SDL)
endif()
endif()


set(SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src)
set(SNES9X_DIR ${CMAKE_CURRENT_SOURCE_DIR}/snes9x2010)
set(STELLA_DIR ${CMAKE_CURRENT_SOURCE_DIR}/stella-libretro)
Expand Down Expand Up @@ -219,7 +218,7 @@ if(UNIT_TESTING)
# )

# endif()
add_definitions(-D__UNIT_TESTING)
add_definitions(-D__UNIT_TESTING)
add_subdirectory(googletest)
enable_testing()
include_directories(${GTEST_INCLUDE_DIRS} ${PYTHON_RLE_DIR})
Expand Down
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include src *
recursive-include rle_python_interface *
recursive-include rle_python_interface *.so
include CMakeLists.txt
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def run_cmake():
cores_to_use = max(1, multiprocessing.cpu_count() - 1)

try:
ds.spawn(['cmake', '../'] + cmake_args.split())
ds.spawn(['cmake', '..'] + cmake_args.split())
ds.spawn(['make', '-j', str(cores_to_use)])
except ds.DistutilsExecError:
print "Error while running cmake"
Expand All @@ -39,6 +39,8 @@ def run(self):
cwd = os.getcwd()
run_cmake()
os.chdir(cwd)
ds.spawn(['./copy_cores.sh'])
_build.build.run(self)

setup(name = 'rle_python_interface',
version='1.0.5',
Expand Down

0 comments on commit e06e57f

Please sign in to comment.