python builder not listening to requirments

My requirements state discord==1.7.3 but the python builder does the following: #11 5.416 Collecting discord.py>=1.7.3 #11 5.423 Using cached discord.py-2.0.1-py3-none-any.whl (1.1 MB) Any idea how I can have it not using the cached discord version?
4 Replies
jr
jr2y ago
Is the cached version not the one you want? To not use the cache you can set NIXPACKS_NO_CACHE=1
Dillonzer
Dillonzer2y ago
yea I can't use the cached version cause it has a breaking change. okay so the issue is for some reason it's not respecting my == in the requirements
#11 5.734 Collecting discord.py>=1.7.3

#11 5.749 Downloading discord.py-2.0.1-py3-none-any.whl (1.1 MB)
#11 5.772 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 58.0 MB/s eta 0:00:00
#11 5.734 Collecting discord.py>=1.7.3

#11 5.749 Downloading discord.py-2.0.1-py3-none-any.whl (1.1 MB)
#11 5.772 ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 1.1/1.1 MB 58.0 MB/s eta 0:00:00
discord == 1.7.3
requests
psycopg2-binary
discord-py-interactions == 3.0.2
discord == 1.7.3
requests
psycopg2-binary
discord-py-interactions == 3.0.2
oh wait.. i see the issue. There is a package I'm using that requires >= 1.7.3 and it's causing the issue
jr
jr2y ago
Nixpacks just does a fresh pip install so you may have to change the install command if you want to force broken peer deps
Dillonzer
Dillonzer2y ago
issue was i needed to require discord.py instead of discord. No idea why because Heroku works fine. but swapping over so learning pains