We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 677e015 commit 36ac2bdCopy full SHA for 36ac2bd
1 file changed
spynnaker/pyNN/setup_pynn.py
@@ -29,7 +29,7 @@
29
30
31
# The version of PyNN that we really want
32
-_TARGET_PYNN_VERSION = "0.9"
+_TARGET_PYNN_VERSION = "0.12"
33
34
35
def version_satisfies(module: ModuleType, requirement: str) -> bool:
@@ -58,7 +58,14 @@ def install_spynnaker_into(module: ModuleType) -> None:
58
59
pynn_init = os.path.join(spinnaker_dir, "__init__.py")
60
spynnaker_init = os.path.abspath(sim.__file__)
61
+ pynn_dir = os.path.dirname(spynnaker_init)
62
+ spynnaker_dir = os.path.dirname(pynn_dir)
63
shutil.copyfile(spynnaker_init, pynn_init)
64
+
65
+ py_typed = os.path.join(spynnaker_dir, "py.typed")
66
+ pynn_typed = os.path.join(spinnaker_dir, "py_typed")
67
+ shutil.copyfile(py_typed, pynn_typed)
68
69
print(f"Updated {pynn_init} to be the same as spynnaker.pyNN")
70
71
0 commit comments