xtensor-stack / xtensor-python

Python bindings for xtensor
BSD 3-Clause "New" or "Revised" License
345 stars 58 forks source link

availability on pypi #219

Closed nschloe closed 4 years ago

nschloe commented 4 years ago

What prevents xtensor-python to be installed via pypi?

SylvainCorlay commented 4 years ago

xtensor-python is not a python package!

nschloe commented 4 years ago

I see.

xtensor-python is a header-only library. We provide a package for the conda package manager.

I got confused by the fact that you're providing a conda package.

SylvainCorlay commented 4 years ago

I got confused by the fact that you're providing a conda package.

In fact, conda is a general purpose package manager. Conda forge includes many non-python packages such as R and thousands of R packages, or as many native packages.

AntoinePrv commented 4 years ago

Hello,

I'm in the process of learning about PyPI, source and binary distributions, etc. as I will need to figure some of it for a project of ours.

CMake and PyBind11 are also not Python packages but they ship on PyPI to easily resolve build dependencies on user computer. I believe in the case of xtensor-python, the idea would be the same, to be able to ship source distribution that will build with an xtensor-python extension. Of course, this would need to also resolve xtensor, etc. so it is not easy.

An idea I'm thinking about is to use conan inside a setup.py, as conan is written in Python, but that might get out of scope for this issue. Would be happy to discuss more if you're interested.