diff options
author | Ben Sima <ben@bsima.me> | 2023-08-07 14:03:07 -0400 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2023-08-07 14:03:36 -0400 |
commit | edb55ff54b9f81c0942f4120eedd72357d7b3d7c (patch) | |
tree | 84c7db39e718c1a301815f0baa50e0900b7d4942 /Com/Simatime/Language | |
parent | beb505a7125e61c4fedd02d77e37545b61b99f73 (diff) |
Working nixified python build
This represents quite a few evenings of hacking. It doesn't build all of my
Python code, because my Python code is not up to snuff, but it builds the
examples and pulls in third party dependencies.
Some design points:
- I'm using buildPythonApplication in Builder.nix because it was getting way too
annoying to wrap the Python script and set PYTHONPATH myself. Easier and more
robust to just use the upstream nix builder
- Because of this, I had to generate a setup.py. Maybe switch to pyproject.toml
in the future, whatever.
- Also because of this, Target.wrapper is becoming redundant. I'll just remove
it when I get Guile built in nix.
- Biz/Bild.nix is getting messy and could use a refactor.
- In Builder.nix, I worked around the empty directories bug by just finding and
deleting empty directories after unpacking. If its stupid but works it ain't
stupid!
- I had to touch __init__.py files in all directories before building. Annoying!
- `repl` just works, which is awesome
- To ensure good Python code, I moved lints and added type checking to the
build. So I can't build anything unless it passes those checks. This seems
restrictive, but if I want to run some non-passing code, I can still use
`repl`, so it's actually not inhibitory.
Diffstat (limited to 'Com/Simatime/Language')
0 files changed, 0 insertions, 0 deletions