add conda build script
This commit is contained in:
parent
1ed3c77310
commit
d060c10096
4 changed files with 65 additions and 0 deletions
6
buildscripts/condarecipe/bld.bat
Normal file
6
buildscripts/condarecipe/bld.bat
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
set LLVMPY_DYNLINK=0
|
||||
set INCLUDE=%LIBRARY_INC%
|
||||
set LIBPATH=%LIBRARY_LIB%
|
||||
set LIB=%LIBRARY_LIB%
|
||||
python setup.py install
|
||||
if errorlevel 1 exit 1
|
||||
13
buildscripts/condarecipe/build.sh
Normal file
13
buildscripts/condarecipe/build.sh
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#!/bin/bash
|
||||
|
||||
if [[ (`uname` == Linux) && (`uname -m` != armv6l) ]]
|
||||
then
|
||||
export CC=gcc
|
||||
#gcc44
|
||||
export CXX=g++
|
||||
#g++44
|
||||
fi
|
||||
|
||||
export LLVMPY_DYNLINK=$DISTRO_BUILD
|
||||
|
||||
$PYTHON setup.py install
|
||||
27
buildscripts/condarecipe/meta.yaml
Normal file
27
buildscripts/condarecipe/meta.yaml
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
package:
|
||||
name: llvmpy
|
||||
version: master
|
||||
|
||||
source:
|
||||
git_url: git@github.com:llvmpy/llvmpy.git
|
||||
# git_tag: 0.12.0
|
||||
|
||||
requirements:
|
||||
build:
|
||||
- llvm
|
||||
- python
|
||||
run:
|
||||
- llvm [unix]
|
||||
- python
|
||||
|
||||
test:
|
||||
imports:
|
||||
- llvm
|
||||
- llvmpy
|
||||
- llvmpy._api
|
||||
- llvmpy._capsule
|
||||
- llpython
|
||||
- llvm_array
|
||||
- llvm_cbuilder
|
||||
|
||||
|
||||
19
buildscripts/condarecipe/run_test.py
Normal file
19
buildscripts/condarecipe/run_test.py
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import sys
|
||||
import platform
|
||||
import llvm
|
||||
|
||||
from llvm.core import Module
|
||||
from llvm.ee import EngineBuilder
|
||||
m = Module.new('fjoidajfa')
|
||||
eb = EngineBuilder.new(m)
|
||||
target = eb.select_target()
|
||||
|
||||
print('target.triple=%r' % target.triple)
|
||||
if sys.platform == 'darwin':
|
||||
s = {'64bit': 'x86_64', '32bit': 'x86'}[platform.architecture()[0]]
|
||||
assert target.triple.startswith(s + '-apple-darwin')
|
||||
|
||||
assert llvm.test(verbosity=2) == 0
|
||||
|
||||
print('llvm.__version__: %s' % llvm.__version__)
|
||||
#assert llvm.__version__ == '0.12.0'
|
||||
Loading…
Add table
Add a link
Reference in a new issue