-
Notifications
You must be signed in to change notification settings - Fork 106
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
Strange install behavior - pip always installs unidecode #59
Comments
@tedmiston The culprit may be the Something like the following.
|
The issue still persists: bash-3.2$ export SLUGIFY_USES_TEXT_UNIDECODE=yes ; pip install python-slugify
Collecting python-slugify
Collecting Unidecode>=0.04.16 (from python-slugify)
Using cached https://files.pythonhosted.org/packages/59/ef/67085e30e8bbcdd76e2f0a4ad8151c13a2c5bce77c85f8cad6e1f16fb141/Unidecode-1.0.22-py2.py3-none-any.whl
Installing collected packages: Unidecode, python-slugify
Successfully installed Unidecode-1.0.22 python-slugify-1.2.6 This is because of the A working approach would be to define the setup(
...
extras_require={
'gpl': ['Unidecode>=0.04.16'],
'artistic': ['text-unidecode>=1.2'],
},
...
) Then installing would work with |
@tammoippen @tammoippen @bolkedebruin @artwr -- Yep, it seems it keeps falling on the default option during the At this time, there is no clean PR on this. |
I'll try to work something out that is more resilient and pythonic. Input is definitely appreciated. |
I'll put a permanent fix in when I push a major revision out. It will install Unidecode by default, however, it would check for |
@tedmiston PR 63 addressed this. This module always prefers and attempts to install and use With that said, for those who want to use |
@un33k Thanks for this! It's (hopefully) a much cleaner solution. I'll check how this works out for us. |
I'm trying to test installing python-slugify with
unidecode
vstext-unidecode
for Airflow, however, for some reason I'm getting the unidecode package installed by pip always even when passing the explicit flag for text-unidecode. I can see in the setup.py that this shouldn't happen, so I'm not really sure how it is.Can you replicate what I'm experiencing below?
Note: I'm using pyenv and virtualenvwrapper commands.
Case 1 - Without
SLUGIFY_USES_TEXT_UNIDECODE
(expected unidecode)Case 2 - With
SLUGIFY_USES_TEXT_UNIDECODE=yes
(expected text-unidecode)Case 3 - With text-unidecode pre-installed (expected text-unidecode)
The text was updated successfully, but these errors were encountered: