balqui / prefscript

PReFScript: A Partial Recursive Functions Lab
MIT License
0 stars 0 forks source link

Finish up the handling of cantorpairs #20

Open balqui opened 3 months ago

balqui commented 3 months ago

As of today, cantorpairs is a git submodule of prefscript declared with

git submodule add git@github.com:balqui/cantorpairs.git cantorpairs

a/ It is unclear what happens if I now clone it with hg or update a hg clone. b/ Now it requires to import cantorpairs.src.cantorpairs as cp which is cumbersome. c/ Maybe if cantorpairs gets an init file at top level in which the public functions are imported from src.cantorpairs and exposed I will get import cantorpairs as cp working.

Once everything is in place, I have to rewrite and explain in the README of cantorpairs and pray that the whole thing gets pip-installable with some normality and see whether installing prefscript leaves cantorpairs functions importable. Only then can I start working on prefscript itself.

balqui commented 3 months ago

Re: "a/ It is unclear what happens if I now clone it with hg or update a hg clone." Mercurial simply refuses to work with subrepositories. Stuck with git. Patience.

Re: b/ See c/

Re: "c/ Maybe if cantorpairs gets an init file at top level in which the public functions are imported from src.cantorpairs and exposed I will get import cantorpairs as cp working." Managed to make that work (almost) through that top-level init file. The current clause is from prefscript import PReFScript, cp (but the renaming as cp should be optional some day).

The whole thing seems pip-installable but the module is only right now in test.pypi.org and not in the main store.