File tree Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Expand file tree Collapse file tree 2 files changed +25
-0
lines changed Original file line number Diff line number Diff line change
1
+ sudo : required
2
+ language : python
3
+ python :
4
+ - " 2.7"
5
+ - " 3.5"
6
+ - " 3.6"
7
+
8
+ env :
9
+ - RUST_VERSION=nightly
10
+
11
+ install :
12
+ - python -c "import sysconfig; print('\n'.join(map(repr,sorted(sysconfig.get_config_vars().items()))))"
13
+ - mkdir ~/rust-installer
14
+ - curl -sL https://static.rust-lang.org/rustup.sh -o ~/rust-installer/rustup.sh
15
+ - sh ~/rust-installer/rustup.sh --prefix=~/rust --spec=$RUST_VERSION -y
16
+ - export PATH="$HOME/rust/bin:$PATH"
17
+ - export PYTHON_LIB=$(python -c "import sysconfig; print(sysconfig.get_config_var('LIBDIR'))")
18
+ - export LIBRARY_PATH="$LIBRARY_PATH:$PYTHON_LIB"
19
+ - export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$PYTHON_LIB:$HOME/rust/lib"
20
+ - rustc -V
21
+ - pip install -e .
22
+
23
+ script :
24
+ - cd example && python setup.py develop
Original file line number Diff line number Diff line change @@ -8,4 +8,5 @@ version = "0.1.0"
8
8
default-features = false
9
9
10
10
[lib ]
11
+ crate-type = [" cdylib" ]
11
12
name = " helloworld"
You can’t perform that action at this time.
0 commit comments