simple one-liner utility to create "conda" packages?

5 views
Skip to first unread message

Rich Lysakowski

unread,
Oct 16, 2022, 10:38:57 AM10/16/22
to conda...@googlegroups.com
I am looking for a simple one-liner utility script to create "conda" packages from my module?
 
Does such a thing exist?  If so, where?   I just visited the  conda-forge (github.com) repo and don't see a repo with instructions for creating or "building" conda packages.  

This should be (almost) as simple as creating a pip package, or conda will constantly lag python-only tools for creating virtual environments.

I found "grayskull" after digging into the conda-blog website, but this is not prominent on the conda-forge website or github.  I will evaluate that for usability and simplicity.

Thank you.

Best Regards,

Rich Lysakowski, Ph.D.
Data Scientist, Analytics Engineer, 
and Senior Business Analyst



Chris Barker - NOAA Federal

unread,
Oct 16, 2022, 1:13:59 PM10/16/22
to Rich Lysakowski, conda...@googlegroups.com
I think grayskull is your answer.

Yes, it should probably be better advertised.

The other helpful resource is the template in:


While I agree that better docs are in order, a couple points:

1) conda has an inherently higher (potential) level of complexity, as it supports various non-Python packages: C libs, compiled python extensions, etc. 

That being said: the easy stuff should be easy.

2) creating “pip packages” ( I put that in quotes, because in a sense there is no such thing — I guess wheels are the closest)  is actually not that easy — the tools have been changing, there are multiple options, there are a lot of out-of-date docs and examples, and building C extensions is a real challenge. 

Other than better advertising of grayskull, the other thing I’d like to see are a few different example templates for conda-forge packages: one for pure Python, one for a simple C extension, etc….

But you can go find a recipe for an existing package if you know where to look.

Final note: making a conda-forge compatible package is a bit more complicated than a build it-yourself package. That’s because it needs to work with the CI infrastructure, and it’s a “curated“ system. But the extra up front costs are well worth it if you want to make your package available to the community.

-CHB




Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

On Oct 16, 2022, at 4:39 AM, Rich Lysakowski <rich.ly...@gmail.com> wrote:


--
You received this message because you are subscribed to the Google Groups "conda-forge" group.
To unsubscribe from this group and stop receiving emails from it, send an email to conda-forge...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/conda-forge/CAA9B1ydiQd_7e2OAJUWWAnN7N%2BBZc%3DoRECFTPaP4ixn-Eks%3DVg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages