Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prerequisites review reminder wrt jpm #30

Closed
sogaiu opened this issue Aug 29, 2021 · 2 comments
Closed

Prerequisites review reminder wrt jpm #30

sogaiu opened this issue Aug 29, 2021 · 2 comments

Comments

@sogaiu
Copy link
Collaborator

sogaiu commented Aug 29, 2021

jpm doesn't currently come with a git clone of janet's repository.

As far as I know, it's not quite clear how folks are going to be expected to install it yet.

This issue is just a reminder to revisit the prerequisites section of the README if separate installation of jpm becomes the norm.

@sogaiu
Copy link
Collaborator Author

sogaiu commented Aug 30, 2021

Janet's Makefile acquired a new target named install-jpm-git. If one is building and installing Janet from the source repository, this can be used to install jpm.

One thing worth noting might be that if one uses PREFIX while building janet, it's likely important to use that for the install-jpm-git target as well.

Recently I've been using:

make clean && \
PREFIX=$HOME/.local make && \
PREFIX=$HOME/.local make install

to intall janet, so for jpm installation I would do:

PREFIX=$HOME/.local make install-jpm-git

One reason to use PREFIX like this is that it makes it straight-forward to test multiple versions of janet using multiple user accounts.

Suppose I want to test version A and version B of janet.

I can install version A of janet for user X and test there.

I can also install version B of janet for user Y and test there separarely.

So at least for people who need to investigate issues related to versions, it's much nicer to be able to have multiple installations of something within a single OS -- and currently, a relatively cheap and straight-forward way to do this is with multiple accounts if the software in question can be made to function installed in a variety of locations.

One can also use virtual machines (like VirtualBox), Docker, or NixOS / guix for this sort of thing. They all have their various trade-offs.

@saikyun
Copy link
Owner

saikyun commented Sep 3, 2021

For now I added a note that the user has to install jpm. I've removed notes about prefix for now, those were mostly for when I was replacing regular jaylib. Now freja-jaylib is a separate package. I'll link to this issue if someone wants to do it with prefixes, thanks for the details. :)

@saikyun saikyun closed this as completed Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants