[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pybuild sphinxdoc and extensions



[Piotr Ożarowski, 2015-10-23]
>   override_dh_auto_install:
>   	dh_auto_install
> 	PYTHONPATH=$(CURDIR)/debian/python3-kwant/usr/lib/python3/dist-packages \
> 	$(MAKE) -C doc html

you might even need to do it later: dh_python3 is not called yet, so
some files might not be moved to /usr/lib/python3/dist-packages yet.
If you decide to override_dh_python3, remember to clean __pycache__
later.

/me thinks he has to provide a simpler way, so that build stage can used...
How about creating .pybuild/build_python3 symlink to whatever is the
default Python3 version? This would make something like this possible:

  override_dh_auto_build:
  	dh_auto_build
	PYTHONPATH=$(CURDIR)/.pybuild/build_cpython3/ $(MAKE) -C doc html

no matter which Python 3.X version is the default one
(it still hardcodes ".pybuild" which I don't like, though)
-- 
Piotr Ożarowski                         Debian GNU/Linux Developer
www.ozarowski.pl          www.griffith.cc           www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645


Reply to: