最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Best practice to add a case-sensitive Python package as depencency - Stack Overflow

programmeradmin1浏览0评论

I need to add the package "modAL" (uppercase AL) as a dependency to a package. Since packages names are (seemingly) case insensitive in pyproject.toml, it falls back to "modal" which is another package.

What is the best way to add modAL and not modal as a depencendy ?

I can install modAL separately (it works), but I want to add it as a regular dependency and I have no clue how to do it.

I need to add the package "modAL" (uppercase AL) as a dependency to a package. Since packages names are (seemingly) case insensitive in pyproject.toml, it falls back to "modal" which is another package.

What is the best way to add modAL and not modal as a depencendy ?

I can install modAL separately (it works), but I want to add it as a regular dependency and I have no clue how to do it.

Share Improve this question edited Mar 14 at 16:45 benjamin_a asked Mar 14 at 16:45 benjamin_abenjamin_a 311 silver badge4 bronze badges 1
  • 2 so as far as I know, python package names are case insensitive, and on pypi, the "modAL" package seems to be distributed as "modAL-python" – juanpa.arrivillaga Commented Mar 14 at 16:56
Add a comment  | 

2 Answers 2

Reset to default 1

The comment of juanpa.arrivillega solves my problem:

"python package names are case insensitive, and on pypi, the "modAL" package seems to be distributed as "modAL-python""

I just replaced "modAL" by "modAL-python" and it works as expected. Thank you !

NOTE : Meanwhile I asked ChatGPT which suggested to use Poetry, but I couldn't find the right way to add this dependency line.

The comment of juanpa.arrivillega solves my problem:

"python package names are case insensitive, and on pypi, the "modAL" package seems to be distributed as "modAL-python""

I just replaced "modAL" by "modAL-python" and it works as expected. Thank you !

Can you add it as a regular answer so I can accept it ?

NOTE : Meanwhile I asked ChatGPT which suggested to use Poetry, but I couldn't find the right way to add this dependency line.

Here, @benjamin_a

发布评论

评论列表(0)

  1. 暂无评论