Skip to content

Commit c46d8a1

Browse files
lanctotopen_spiel@google.com
authored andcommitted
Add changes to setup.py and MANIFEST.in that were required for release.
PiperOrigin-RevId: 347370039 Change-Id: I935eae9489aa07282da1fd6eb6ca51c613eff646
1 parent a79c839 commit c46d8a1

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

MANIFEST.in

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ recursive-include pybind11/pybind11 *.py
77
include pybind11/CMakeLists.txt
88

99
# open_spiel files, including source files for abseil and dds
10-
recursive-include open_spiel CMakeLists.txt *.cc *.cpp *.h *.hpp
10+
recursive-include open_spiel CMakeLists.txt *.cc *.cpp *.h *.hpp *.py evalHandTables
1111

1212
# abseil CMake files
1313
recursive-include open_spiel/abseil-cpp/CMake **

setup.py

+5-3
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ def build_extension(self, ext):
104104
cxx = "clang++"
105105
if os.environ.get("CXX") is not None:
106106
cxx = os.environ.get("CXX")
107+
env = os.environ.copy()
107108
cmake_args = [
108109
f"-DPython3_EXECUTABLE={sys.executable}",
109110
f"-DCMAKE_CXX_COMPILER={cxx}",
@@ -112,8 +113,8 @@ def build_extension(self, ext):
112113
if not os.path.exists(self.build_temp):
113114
os.makedirs(self.build_temp)
114115
subprocess.check_call(
115-
["cmake", ext.sourcedir] + cmake_args, cwd=self.build_temp)
116-
env = os.environ.copy()
116+
["cmake", ext.sourcedir] + cmake_args, cwd=self.build_temp,
117+
env=env)
117118
if os.environ.get("OPEN_SPIEL_BUILD_ALL") is not None:
118119
# Build everything (necessary for nox tests)
119120
subprocess.check_call(["make", f"-j{os.cpu_count()}"],
@@ -153,7 +154,7 @@ def _parse_line(s):
153154

154155
setuptools.setup(
155156
name="open_spiel",
156-
version="0.2.0",
157+
version="0.2.0rc4",
157158
license="Apache 2.0",
158159
author="The OpenSpiel authors",
159160
author_email="[email protected]",
@@ -166,4 +167,5 @@ def _parse_line(s):
166167
ext_modules=[CMakeExtension("pyspiel", sourcedir="open_spiel")],
167168
cmdclass={"build_ext": BuildExt},
168169
zip_safe=False,
170+
packages=setuptools.find_packages(include=["open_spiel", "open_spiel.*"])
169171
)

0 commit comments

Comments
 (0)