Skip to content

Commit

Permalink
Mac support
Browse files Browse the repository at this point in the history
  • Loading branch information
stepjam committed Apr 21, 2024
1 parent 23dbbdf commit 9284d52
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ Once you have downloaded CoppeliaSim, add the following to your *~/.bashrc* / *~
```bash
export COPPELIASIM_ROOT=EDIT/ME/PATH/TO/COPPELIASIM/INSTALL/DIR
```
Note for mac, this is usually:
```bash
export COPPELIASIM_ROOT=/Applications/coppeliaSim.app/Contents/MacOS
```

Install PyRep:

Expand Down
5 changes: 2 additions & 3 deletions pyrep/backend/lib.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,12 @@
coppeliasim_library = ""
plat = platform.system()
if plat == "Windows":
raise NotImplementedError()
raise NotImplementedError("Windows not tested yet.")
# coppeliasim_library /= f'{defaultLibNameBase}.dll'
elif plat == "Linux":
coppeliasim_library = os.path.join(coppeliasim_root, "libcoppeliaSim.so")
elif plat == "Darwin":
raise NotImplementedError()
# coppeliasim_library /= f'../MacOS/lib{defaultLibNameBase}.dylib'
coppeliasim_library = os.path.join(coppeliasim_root, "libcoppeliaSim.dylib")
if not os.path.isfile(coppeliasim_library):
raise PyRepError(
"COPPELIASIM_ROOT was not a correct path. " "See installation instructions"
Expand Down
15 changes: 0 additions & 15 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,6 @@ def get_version(rel_path):
raise RuntimeError("Unable to find version string.")


# Temp fix for CoppeliaSim 4.1
if "COPPELIASIM_ROOT" not in os.environ:
raise RuntimeError("COPPELIASIM_ROOT not defined.")

usrset_file = os.path.join(os.environ["COPPELIASIM_ROOT"], "system", "usrset.txt")
usrset = ""
if os.path.isfile(usrset_file):
with open(usrset_file, "r") as f:
usrset = f.read()

if "allowOldEduRelease" not in usrset:
with open(usrset_file, "a+") as f:
f.write("\nallowOldEduRelease=7501\n")


core_requirements = [
"numpy",
"cbor",
Expand Down

0 comments on commit 9284d52

Please sign in to comment.