Skip to content

Commit

Permalink
Update readthedocs.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
golobor authored Dec 18, 2024
1 parent fea0d21 commit 0a5fb1f
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@

# .readthedocs.yml

# For some reason, readthedocs' platform does not import the installed package (from .../envs/),
# but instead reads another copy from .../checkouts/. This other copy does not have compiled
# cython objects and throws and error.
# To overcome this issue, we had to use a custom job to install pairtools in the editable mode
# and thus ensure that the cython code is compiled.
# Another potentially useful trick in the future: setting environmental variables
# (e.g. PIP_VERBOSE and PIP_NO_BUILD_ISOLATION=false) can control pip's behaviour in
# the standard install job.


version: 2

build:
Expand All @@ -12,12 +23,13 @@ build:
- pip install --no-build-isolation -e .[doc]
- python -c "import pairtools.lib.dedup_cython"

sphinx:
configuration: doc/conf.py

# python:
# install:
# - method: pip
# path: .
# extra_requirements:
# - doc

sphinx:
configuration: doc/conf.py

0 comments on commit 0a5fb1f

Please sign in to comment.