File: rules

package info (click to toggle)
tokenizers 0.20.3%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 5,480 kB
  • sloc: python: 4,499; javascript: 419; makefile: 124
file content (20 lines) | stat: -rwxr-xr-x 494 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f
include /usr/share/dpkg/buildflags.mk
export CARGO_NET_OFFLINE=true
export PYBUILD_NAME=tokenizers

%:
	dh $@ --buildsystem=pybuild --sourcedirectory=bindings/python

execute_before_dh_auto_clean:
	-$(RM) -rfv .cargo
	-mv bindings/python/Cargo.lock.bak bindings/python/Cargo.lock

execute_before_dh_auto_configure:
	mkdir -pv .cargo
	cp debian/cargo-config.toml .cargo/config.toml
	-mv bindings/python/Cargo.lock bindings/python/Cargo.lock.bak

override_dh_auto_test:
	true