Skip to content

Getting rid of the "machines" folder.. #40

Open

Description

@Ejler

The machines folder is great for inspirational scripts, but horrible in terms of sharing PyExpLabSys between different "installations".

Ideas to separate machines from PyExpLabSys?

Activity

  1. robertjensen commented on Jul 4, 2022

    @robertjensen
    Member

    I will suggest some variant over a theme like this:

    • Each usergroup create and maintain their own repository with their own machines, in the same manner as:
      https://github.com/robertjensen/machines
      This repo is for my own installation at home, a similar repo (non-public) exists for HPNow and also Nanomade will soon get one
      It is of course preferred that such repos are public to allow mutual inspiration. We could even make a document in main PyExpLabSys with references to a few highlights

    • A typical installation will consist of a checkout of PyExpLabSys, that will be pip-installed with --user as well as a checkout of the local relevant machines folder.

    • Once this is done by all users with code in current PyExpLabSys/machines (ie. surfcat), remove machines from PyExpLabSys entirely (git rm -r machines/)

  2. KennethNielsen commented on Jul 4, 2022

    @KennethNielsen
    Member

    I think Roberts plan sounds good. My only input on this was that SurfCat could use a git submodule for machines. That way there would be a link between the PyExpLabSys source code and updates there and the machines repo. But, if you are going for a true separation, like what Robert is hintint at, which I think is better, then there is no need for this.

    The bottom line is that it would be give you a slightly simpler setup and update, but at the expense of using the the semi-magical git submodules during development, so not worth it IMO.

  3. robertjensen commented on Jul 5, 2022

    @robertjensen
    Member

    Great, I will suggest that @Ejler initiate the work of making a stand-alone machines folder for surfcat. If you want to preserve git-history, you could fork and remove everything else, or you could simply copy the files and start a new repo.

  4. Ejler commented on Jul 5, 2022

    @Ejler
    MemberAuthor

    Sounds great. I'm on it.

  5. robertjensen commented on Jul 7, 2022

    @robertjensen
    Member

    If PyExpLabSys is installed with pip --user, should I then update bootstrap to also user --user in the pip step?

  6. KennethNielsen commented on Jul 7, 2022

    @KennethNielsen
    Member

    @robertjensen The need not to hose ones system dirs is of course smaller on RPi's, but still, I'm surprised it wasn't already, and since it is always the same user, that totally makes sense to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions