Skip to content

Help needed with conda-build and setting up meta.yaml, and setup.py for module/submodule structure. #44

@markomijat

Description

@markomijat

Hello,

I am trying to build a conda package, using conda-build, from pure python modules (and submodules). As a starter I use the cookiecutter at https://github.com/conda/cookiecutter-conda-python.git.
If I understand correctly, one can only include python submodules if the source files are on github ?
Can someone please point me to a comprehensive example (even for a non professional programmer) on how to make a pure python package using conda-build, out of a simple module/submodule structure ?
To be more precise, I'm interested in how to set :

  • meta.yaml file (and how to use load_setup_py_data() function ?)
  • setup.py file.
    For further information : I manage creating a package from a local file where all my python code is in one file, but when I use the same approach on a git source (where I have only my python code in modules and submodules) , I get this error :

(%BUILD_PREFIX%) %SRC_DIR%>python setup.py install --single-version-externally-managed --record=record.txt
python: can't open file 'setup.py': [Errno 2] No such file or directory

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions