-
Notifications
You must be signed in to change notification settings - Fork 2
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
Consider using (and extending) dephell #57
Comments
DepHell has some kind of support for conda: search, resolve, lock, convert. Not installation, though. |
Cool. Not sure how you found this hidden away project, but thanks for the info! I really want to try out dephell but never have time. Does dephell translate package names at all when moving between ecosystems (or allow a way for someone to map them)? We've encountered various complications between pypi and anaconda.org, including e.g.
|
To be honest, I'm not a conda user. I dived in it only once, when I was implementing its support for DepHell. I'm not sure that I handle names mismatching in some way. We have names mapping for Anyway, you can just try it, it's free :) I see a lot of packages in ❯ dephell package show --repo=conda msgpack
{
"authors": [],
"description": "",
"latest": "0.2.3",
"license": null,
"links": {},
"name": "msgpack",
"updated": "1970-01-01"
} |
What features do you miss in DepHell? Making your own dependency management tool is a big step and a lot of work and suffering. Maybe, we can, as you said in the title, just extend dephell instead. Try it, give it a go, it's much easier. |
I unfortunately have no idea what features dephell is missing yet - I have to investigate to find out :) That part is unfortunately not free in that it takes time. But here is a quick demo of the specific problems I mentioned above, in case it helps... Get sampleproject and add graphviz and msgpack as dependencies
Use dephell to convert from setup.py to conda:
msgpack is not the right name for conda:
(If I want msgpack in python with conda, I do With conda, graphviz is not the python package name:
(If I want graphviz in python with conda, I do You might say that conda should not be so different from the python ecosystem, i.e. the fault lies with conda. I agree there are namespace issues that don't appear to have been thought through (I might be wrong), but on the other hand note that e.g.
I would need to install graphviz via apt or similar. (Or there would need to be a lot more things in the binary wheels people produce for projects I depend on...) |
Believe me, I'm not going to write my own dependency management tool :) pyctdev mainly just uses other tools, and doesn't do anything itself...except for providing basic support for translating between anaconda and pypi package names, because it's something we need. And I also wanted to add support for package name to import name(s) mapping to pyctdev, for use in testing packages. All this package name mapping is something I was considering breaking out into its own project (which pyctdev would then use) - and this is how I found dephell, when doing a new background search for similar projects. I was very happy to see a project to do some of this had been created since last time I searched! (Unfortunately, dephell appeared well after pyctdev (and its predecessor) was already "finished" and in use, otherwise I might be using it already...) |
Which is of course why one would want to use Conda for such things... |
Right. And not just as a user - if you are the author of a python library/app, and you depend on e.g. graphviz, you can release a conda package depending on python-graphviz and know it will work with a high chance of success, on linux, windows, and mac (all without any special privileges) That takes away a lot of support burden. (Except for all the people coming to you asking for help doing it without conda! ;) ) |
The extending would be for conda, I imagine.
The text was updated successfully, but these errors were encountered: