Skip to content

Commit

Permalink
Minor fixes for documentation build:
Browse files Browse the repository at this point in the history
- Don't need to set PYTHONPATH
- Import source from build/lib
- Don't write byte code
  • Loading branch information
RKrahl committed Dec 2, 2023
1 parent a2da24f commit dd12dbf
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ test:
sdist:
$(PYTHON) setup.py sdist

doc-html: meta
$(MAKE) -C doc html PYTHONPATH=$(CURDIR)
doc-html: build
$(MAKE) -C doc html

doc-man: meta
$(MAKE) -C doc man PYTHONPATH=$(CURDIR)
doc-man: build
$(MAKE) -C doc man

clean:
rm -rf build
Expand Down
8 changes: 5 additions & 3 deletions doc/src/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
import sys

maindir = Path(__file__).resolve().parent.parent.parent
sys.path[0] = str(maindir)
buildlib = maindir / "build" / "lib"
sys.path[0] = str(buildlib)
sys.dont_write_bytecode = True

import _meta
import archive


# -- Project information -----------------------------------------------------
Expand All @@ -22,7 +24,7 @@
author = 'Rolf Krahl'

# The full version, including alpha/beta/rc tags
release = _meta.__version__
release = archive.__version__
# The short X.Y version
version = ".".join(release.split(".")[0:2])

Expand Down

0 comments on commit dd12dbf

Please sign in to comment.