-
Notifications
You must be signed in to change notification settings - Fork 45
Can we make this module installable via pip? #74
Comments
Totally agree, at this time and age, every project should support pip. Please! |
I think we should replace "make installable" with "make downloadable" in case with GAE and taking into account how |
I think it would be very useful. Have a look at template projects such as https://github.com/kamalgill/flask-appengine-template or https://github.com/gae-init/gae-init, you will see that they use virtualenv for all packages. Personally I utilise Hence having the option to install it via pip would be incredibly useful. |
All it needs is a setup.py file, to be supported by pip, right? |
If it were installable via pip, how would the static assets be used? i.e. how would you specify the path |
By installing it to a specific folder?
|
Is that option specifiable via a |
hmm.. actually I'm using it here: https://github.com/gae-init/gae-init-debug/tree/master/main/libx and the whole magic with pip was done by @gmist so maybe he can help more in this area :) |
My gut feeling is that this isn't particularly useful unless it's specifiable via For reference, at Khan Academy, we use it as a submodule of our main repository. |
I'm installing everything from requirements.txt into a lib folder that I If it were a pip installable module, I wouldn't have to do this hacky On Wed, Nov 11, 2015, 12:57 PM Jamie Wong [email protected] wrote:
|
Same here.. as everything else for GAE, the 3rd party libs needs to be included in the project's directory.. git modules are nice, but not very practical in real life :) |
Yes, this is exactly my workflow as well. I have to copy it in manually into lib folder, and I don't want the |
Sorry if I'm misunderstanding, but this isn't what I'm suggesting -- this is the role of In our main repository, for instance, we do this:
If I'm understanding correctly, this means you have If that's the path that you're recommending, then the next step would be if someone would be so kind as to make a |
Jamie, You are exactly correct in how I'm using it (pip command as part of I've created a fork where I'm experimenting with creating the setup.py and I'll send a pull request if I can make it work. So far I can create an On Wed, Nov 11, 2015, 4:59 PM Jamie Wong [email protected] wrote:
|
Good stuff..! Looking forward @bogdanvarlamov. @jlfwong what about the other 3rd party libraries?! Are you not using (In general it makes sense for you guys to have a git submodule as this is your library and you know what is going on, but depending on a git submodule in other projects makes it inconvenient to work, especially when it comes to versions. If you have everything in the requirements.txt it's much easier..) |
We are, but we have a bunch of restrictions imposed as a result of GAE's system for libraries: https://cloud.google.com/appengine/docs/python/tools/libraries27?hl=en and we run gae-mini-profiler (as well as many other third party libs) in production, so we can't use pip for those.
|
Hi All, I created a branch in my fork of this repo that contains the refactoring needed to have this project be "pipable". It is available here: https://github.com/bogdanvarlamov/gae_mini_profiler/tree/pip_support Since the changes are more extensive than I initially thought, I need @jlfwong to take a look and decide what is preferable:
If anyone is curious about trying out my fork in their projects to make sure it works right, here are the steps:
You can now import gae_mini_profiler packages into your code just like you would with any other package in the lib folder. |
@bogdanvarlamov Thanks for looking into this! It looks like as-written this will require some changes to projects already using the mini profiler, because of the directory change. Do you know if there's a reasonable way to make it pip-installable without doing that, even if it's not exactly the standard/recommended approach? Doing the update is fairly easy for us, but I'd be concerned about breaking things for other sites that use it, especially since we don't really have any versioning at the moment. If we can do it without breaking things, we'd certainly be happy to accept a pull request and we can talk about the details of that then. |
Unfortunately I spent a good bit of time trying different hacks to get a Keep in mind that I've never made a pip install package before, and don't Out of the hacks I tried, the only plausibly working one was to explicitly On Tue, Dec 8, 2015, 8:29 PM Ben Kraft [email protected] wrote:
|
No description provided.
The text was updated successfully, but these errors were encountered: