chiark / gitweb /
base91: Python: make `import' work
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 8 Nov 2019 20:26:35 +0000 (20:26 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 7 Dec 2019 17:08:51 +0000 (17:08 +0000)
We have subtree merged the base91 python module as base91-python.

We will want to be able to `import base91'.  So make a symlink
`base91.py', and arrange to install it.  ($(INSTALL) installs a copy
of the file, not the link, as we need it to.)

This is getting rather intimate with the file structure of the
upstream base91-python.  If base91-python ever becomes more
complicated, and this breaks, it would surely be best to make it into
its own package.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Subdir.sd.mk
base91.py [new symlink]

index f080f07bdcfe3b4162e49e95e6dbf88f1ba24cdc..7ee0019ea3c17b210733860dcf823612d97f0c9d 100644 (file)
@@ -55,7 +55,7 @@ OBJECTS:=secnet.o util.o conffile.yy.o conffile.tab.o conffile.o modules.o \
        hackypar.o base91s/base91.o
 # version.o is handled specially below and in the link rule for secnet.
 
-PYMODULES := ipaddrset.py argparseactionnoyes.py
+PYMODULES := ipaddrset.py argparseactionnoyes.py base91.py
 
 TEST_OBJECTS:=eax-aes-test.o eax-serpent-test.o eax-serpentbe-test.o \
                eax-test.o aes.o
diff --git a/base91.py b/base91.py
new file mode 120000 (symlink)
index 0000000..f407d44
--- /dev/null
+++ b/base91.py
@@ -0,0 +1 @@
+base91-python/base91/__init__.py
\ No newline at end of file