Skip to content

Commit

Permalink
Use os.pathsep to split RENPY_DEPS_INSTALL.
Browse files Browse the repository at this point in the history
(If :: is not given.)

Fixes #1499.
  • Loading branch information
renpytom committed Jul 4, 2018
1 parent 9f16b14 commit 7a613e6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
7 changes: 4 additions & 3 deletions README.rst
Expand Up @@ -76,10 +76,11 @@ Then, install pygame_sdl2 by running the following commands::
python setup.py install_headers
popd

Next, set RENPY_DEPS_INSTALL To a \::-separated list of paths containing the
dependencies, and RENPY_CYTHON to the name of the cython command::
Next, set RENPY_DEPS_INSTALL To a \:-separated (\;-separated on Windows)
list of paths containing the dependencies, and RENPY_CYTHON to the name
of the cython command::

export RENPY_DEPS_INSTALL="/usr::/usr/lib/x86_64-linux-gnu/"
export RENPY_DEPS_INSTALL="/usr:/usr/lib/x86_64-linux-gnu/"
export RENPY_CYTHON=cython

Finally, use setup.py in the Ren'Py ``module`` directory to compile and
Expand Down
7 changes: 6 additions & 1 deletion module/setuplib.py
Expand Up @@ -58,7 +58,12 @@
# dependencies installed in them.
if not (android or ios):
install = os.environ.get("RENPY_DEPS_INSTALL", "/usr")
install = install.split("::")

if "::" in install:
install = install.split("::")
else:
install = install.split(os.pathsep)

install = [ os.path.abspath(i) for i in install ]

if "VIRTUAL_ENV" in os.environ:
Expand Down

0 comments on commit 7a613e6

Please sign in to comment.