Code Monkey home page Code Monkey logo

Comments (4)

AdamISZ avatar AdamISZ commented on August 28, 2024

Ah yes. I remember having problems with this myself. (It's of course the reason for the setupall.py script). One thing I found is that there's a mode/flag to python setup.py install that effectively links to the existing directory, instead of putting it into site-packages in the virtualenv; I think it might have been -e, but would have to check.

Re: "this is only an issue for developers", it certainly should be, but it's an annoyance in case a user ever has to edit source files (which they shouldn't, but they may in fact have to with JM as it stands; although only for Maker side usually - and this doesn't handle Makers yet).

In any case, thanks for taking a look, much appreciated.

from joinmarket-clientserver.

eduard6 avatar eduard6 commented on August 28, 2024

Thank you. To add -e to the pip install command in setupall.py is all that is needed. I made changes for setupall.py to add --develop mode and wrote instructions for developers (have not yet committed).

But is there a reason to install to site-packages? I think using the local code for all installs is more convenient and what users expect. It is strange to edit a Python file and have the changes not make any effect. If you agree I will make the needed changes and do a PR.

from joinmarket-clientserver.

AdamISZ avatar AdamISZ commented on August 28, 2024

Yes, that was it, pip install -e .

But is there a reason to install to site-packages?

I honestly don't know the ins and outs; I think the idea is to completely isolate the installation to the virtualenv, which I guess makes sense? Only surmise, but it seems likely. If your PR has the -e thing as a --develop flag, that sounds ideal, yes, I would merge that, thanks! Presumably then the travis test would pass OK as it wouldn't use that (I didn't investigate yet, somehow the imports failed there though).

from joinmarket-clientserver.

AdamISZ avatar AdamISZ commented on August 28, 2024

Merged #47

There are still open questions here, but for now this seems an acceptable situation.

from joinmarket-clientserver.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.