Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions conda.recipe/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CFLAGS="-fno-stack-protector -Wno-narrowing" $PYTHON -m pip install --no-deps --ignore-installed .
31 changes: 31 additions & 0 deletions conda.recipe/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
package:
name: pycld2
version: 0.42

source:
- path: ..

build:
number: 2

requirements:
host:
- python

build:
- {{ compiler('cxx') }}

test:
requires:
- python

source_files:
- test_pycld2.py

commands:
- python test_pycld2.py -v

about:
home: https://github.com/aboSamoor/pycld2
license: Apache Software License
summary: Python bindings around Google Chromium's embedded compact language detection library (CLD2)
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import io
import re
import platform
from os import path
import platform

Expand Down Expand Up @@ -65,6 +66,10 @@
else:
extra_compile_args = ["-w", "-O2", "-fPIC"]


if platform.machine() == 'x86_64':
extra_compile_args.append("-m64")

module = setuptools.Extension(
# First arg (name) is the full name of the extension, including
# any packages - ie. not a filename or pathname, but Python dotted
Expand Down