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, 15 Feb 2020 21:56:49 +0000 (21:56 +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>
Dir.sd.mk
base91.py [new symlink]

index e875feb534996736fa5784189816fe1f327db6e1..358e1022f8bed6db80a54f38f01ab32395d42951 100644 (file)
--- a/Dir.sd.mk
+++ b/Dir.sd.mk
@@ -57,7 +57,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