Skip to content

Commit 9c2ccd0

Browse files
committed
windows fixes
1 parent 50d54d9 commit 9c2ccd0

File tree

4 files changed

+19
-16
lines changed

4 files changed

+19
-16
lines changed

python/loader/simulation.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
from importlib import import_module, machinery, util
1717
import inspect
1818
from math import log2, ceil, floor
19+
from pathlib import Path
1920
from collections import defaultdict
2021
from tempfile import TemporaryDirectory
2122
from subprocess import run
@@ -263,15 +264,15 @@ def compile(source, rlc_compiler="rlc", rlc_includes=[], rlc_runtime_lib="", opt
263264
source,
264265
"--python",
265266
"-o",
266-
"{}/wrapper.py".format(tmp_dir.name),
267+
Path(tmp_dir.name) / Path("wrapper.py"),
267268
"-O2" if optimized else "",
268269
]
269270
+ include_args
270271
).returncode
271272
== 0
272273
)
273-
args = [rlc_compiler, source, "--shared", "-o", "{}/lib.so".format(tmp_dir.name), "-O2" if optimized else ""]
274+
args = [rlc_compiler, source, "--shared", "-o", Path(tmp_dir.name) / Path("lib.so"), "-O2" if optimized else ""]
274275
if rlc_runtime_lib != "":
275276
args = args + ["--runtime-lib", rlc_runtime_lib]
276277
assert run(args + include_args).returncode == 0
277-
return Simulation(tmp_dir.name + "/wrapper.py", tmp_dir)
278+
return Simulation(str(Path(tmp_dir.name) / Path("wrapper.py")), tmp_dir)

python/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,15 +51,15 @@ def copy_binaries(source_directory, destination_directory):
5151

5252
setup(
5353
name="rl_language",
54-
version="0.1.12",
54+
version="0.1.13",
5555
author="Massimo Fioravanti",
5656
author_email="[email protected]",
5757
packages=find_packages(),
5858
include_package_data=True,
5959
data_files=extra_files_bin
6060
+ extra_files_lib
6161
+ [("./bin/impl", ["./test.py", "./action.py", "./learn.py", "./play.py", "./solve.py", "./probs.py"])],
62-
install_requires=read_requirements("../requirements.txt"),
62+
install_requires=read_requirements("../run-requirements.txt"),
6363
entry_points={
6464
"console_scripts": [
6565
"rlc-test=impl.test:main",

requirements.txt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,5 @@
11
vulture
22
pytest
33
pylint
4-
torch
5-
torchviz
6-
numpy
7-
ray[data,train,tune,serve]==2.12.0
8-
hyperopt
9-
gymnasium
10-
dm_tree
11-
typer
12-
scikit-image
13-
lz4
14-
tensorboard
4+
lit
5+
-r run-requirements.txt

run-requirements.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
torch
2+
torchviz
3+
numpy
4+
ray[data,train,tune,serve]==2.12.0
5+
hyperopt
6+
gymnasium
7+
dm_tree
8+
typer
9+
scikit-image
10+
lz4
11+
tensorboard

0 commit comments

Comments
 (0)