Comments (8)
I really do think it could be as simple as removing cython from install_requires in setup.py but keeping it in setup_requires. I don't think it's a problem that cython a build/setup requirement, it just shouldn't be an install requirement. Maybe I'm missing something about how setup.py works...
You are correct and that is exactly what #62 does 😄
from cftime.
@xylar the conda-recipe here is only for Windows testing and I'm inclined to remove that altogether and use a bare bones AppVeoyr config. BTW, that is an issue with the recipe here and not cftime
. (Due to its use of python setup.py install
rather than pip
.)
TL;DR you should use cftime
from conda-forge
if you need a conda package for that and not this recipe.
from cftime.
@ocefpaf, thank you very much for the reply.
I think I am, indeed, using cftime
from conda-forge
. As with the recipe that you are removing here, cython
is not included as a dependency (which I think is correct). The problem seems to remain that pkg_resources
is somehow picking up the list of dependencies passed to setup.py
rather than the one that is included in the conda-forge
recipe, meaning that it raises this erroneous DistributionNotFound
exception.
Have you seen this kind of thing anywhere in the past?
@czender and colleagues saw exactly the same error at least once before. I'm not sure how they managed to resolve it:
jaws/jaws#115
from cftime.
I think I am, indeed, using cftime from conda-forge
OK. Let's move this discussion to the feedstock then. I'll check that in a moment...
from cftime.
@ocefpaf, I'm happy to move this over to cftime-feedstock
if you're quite sure the problem is on the conda-forge
side. I still think the problem is most likely to be introduced in setup.py
(regardless of whether pip
is used or not). If I do a grep on an environment where cftime
has been installed from conda-forge
, I see:
$ cat lib/python3.6/site-packages/cftime-1.0.0-py3.6.egg-info/requires.txt
numpy
cython
setuptools>=18.0
These requirements come directly from requirements.txt
in this repo and are parsed in setup.py
. I have spent a bit over an hour trying to understand the intricacies of how pkg_resources
parses requirements to no avail but I suspect it must be pulling information from the file above.
from cftime.
I thought that, in conda-forge
we where not cythinizing, and then we would not need it. But yes, you are correct. Sorry for the noise.
have spent a bit over an hour trying to understand the intricacies of how pkg_resources
pkg_resources
is terrible, let me dig into this, we can probably be smarter on how we generate the cythonized files without introducing it as a dependency.
from cftime.
Thanks again for looking at this!
I really do think it could be as simple as removing cython
from install_requires
in setup.py
but keeping it in setup_requires
. I don't think it's a problem that cython
a build/setup requirement, it just shouldn't be an install requirement. Maybe I'm missing something about how setup.py
works...
from cftime.
Excellent! Thanks very much for taking care of this!
from cftime.
Related Issues (20)
- test_num2date_precision failure on various architectures HOT 3
- OverflowError time values outside range of 64 bit signed integers HOT 13
- Dealing with netcdf time:units with unexpected characters HOT 5
- Future plans for the `longdouble` argument HOT 2
- Support time units that are a multiple of second, hour, or day (with a reference date) HOT 5
- Unexpected results when not using separators in format code with cftime.datetime.strptime HOT 7
- Matplotlib date formatter and cftime : incompatible ? HOT 8
- Parsing "months since ..." dates HOT 4
- Build `musllinux` wheels HOT 4
- Missing 1.6.3 sdist on pypi
- reformat axis, calendar, units or all? Repeating time ranges HOT 1
- Passing empty array to date2num raises `IndexError: index 0 is out of bounds for axis 0 with size 0` HOT 1
- Numpy 2.0 incompatibility
- BUG: Not NumPy 2.0 compatible HOT 9
- PyPI release pulls numpy 2.0.0rc1 for python 3.12 HOT 4
- [Bug]: `TypeError: unsupported operand type(s) for +: 'cftime._cftime.DatetimeNoLeap' and 'NoneType'` on Linux HOT 13
- No `aarch64` wheels on PyPI HOT 3
- PyPI publish release action failing HOT 1
- Missing sdist for 1.6.4 HOT 2
- sdist not uploaded to pypi by github action HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cftime.