-
Notifications
You must be signed in to change notification settings - Fork 32
/
readthedocs.yml
35 lines (27 loc) · 985 Bytes
/
readthedocs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# .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:
os: ubuntu-22.04
tools:
python: "3.10"
jobs:
post_create_environment:
- pip install numpy cython pysam
- pip install --no-build-isolation -e .[doc]
- python -c "import pairtools.lib.dedup_cython"
# python:
# install:
# - method: pip
# path: .
# extra_requirements:
# - doc
sphinx:
configuration: doc/conf.py