Repository navigation
platformio: 3.4.1 -> 3.5.0 - #33367
Conversation
There was a problem hiding this comment.
I would rather patch the line install_requires.append('backports.functools_lru_cache==1.2.1') from setup.py to read install_requires.append('backports.functools_lru_cache>=1.2.1').
There was a problem hiding this comment.
Even if arrow really does require a very specific version of lru_cache this version should not be exposed in python-packages.nix.
Ideally arrow should be patched to not require a very explicit version but if it really does this override should be moved to the arrow directory.
There was a problem hiding this comment.
Additional versions of packages are not permitted in python-packages.nix at all as they cause collisions, so also not inside expressions. Applications that are defined outside python-packages.nix can override the package set to insert whatever version they need.
There was a problem hiding this comment.
Additional versions of packages are not permitted in python-packages.nix at all as they cause collisions, so also not inside expressions. Applications that are defined outside python-packages.nix can override the package set to insert whatever version they need.
4d8e4eb to
9c7eee2
Compare
|
made changes requested by @FRidh and @adisbladis and verified it still worked on my box. I also added pio alias as it has been bugging me its not there |
9c7eee2 to
d4109bd
Compare
There was a problem hiding this comment.
Why is this needed? wrapPythonPrograms already sets PATH and injects PYTHONPATH.
Note also that the postFixup (or fixupPhase in general) is preferred for wrappers.
There was a problem hiding this comment.
you are right its no longer needed with the other fixes in place. earlier i was not seeing the lru getting linked in properly.
f3d2507 to
147abaa
Compare
|
What are the packages in the chrootenv for? They all seem to be dependencies of platformio already. Did you get an import error if you did not add say the backports package? |
147abaa to
27b5dbb
Compare
|
Earlier i thought I did. I just tested it with them removed and it runs fine as well. I pushed updated code just now @FRidh |
|
I think you may as well write |
|
@FRidh i am happy to make that change but im not sure how. i looked at some of the packages that make use of it but not sure i completely grok whats going on. |
|
@mogorman it creates a tree of symbolic links including the listed packages and Python dependencies. |
|
right @FRidh , im just not sure how to correctly to use it in the expression and have the resulting fhsuserenv work. i tried saying let pythonUserEnv = python.withPackages(ps: with ps; [ platformio ]) and then including that instead of the python deps and it failed to run |
That's a pity, I thought that could work. How did it fail? With what error? |
|
In any case, that's an improvement that can be made separate from this PR. |
Motivation for this change
i wanted to use an esp32 so i needed to update platformio. it needs a specific version of lru_cache because arrow 0.12.0 needs a specific version it seems. also the wrapper function had to be changed as it was not linking to the lru package correctly.
Things done
build-use-sandboxinnix.confon non-NixOS)nix-shell -p nox --run "nox-review wip"./result/bin/)