Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

# Python compiled files
*.py[cod]
/src/*/*.so

# do not commit thirdparty cache of wheels
/thirdparty
Expand Down
4 changes: 2 additions & 2 deletions configure
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ CFG_ROOT_DIR="$( cd "$( dirname "${CFG_BIN}" )" && pwd )"

CFG_BIN_DIR=$CFG_ROOT_DIR/$VIRTUALENV_DIR/bin

# force relaunching under X86-64 architecture on macOS M1/ARM
# force relaunching under X86-64 architecture on macOS M1/ARM
if [[ $OSTYPE == 'darwin'* && $(uname -m) == 'arm64' && $(sysctl -in sysctl.proc_translated) == 0 ]]; then
arch -x86_64 /bin/bash -c "$CFG_ROOT_DIR/configure $*"
exit $?
Expand Down Expand Up @@ -242,6 +242,7 @@ create_virtualenv() {
--no-vcs-ignore \
$CFG_QUIET \
"$CFG_ROOT_DIR/$VENV_DIR"
"$CFG_BIN_DIR/pip" install cython
fi
}

Expand All @@ -253,7 +254,6 @@ install_packages() {
# be reinstalled a second time and reused from the virtualenv and this
# speeds up the installation.
# We always have the PEP517 build dependencies installed already.

"$CFG_BIN_DIR/pip" install \
--upgrade \
--no-build-isolation \
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build-system]
requires = ["setuptools", "wheel"]
requires = ["cython", "setuptools", "wheel"]
build-backend = "setuptools.build_meta"

[tool.setuptools_scm]
Expand Down Expand Up @@ -69,7 +69,7 @@ include = [
"."

]
# ignore test data and testfiles: they should never be linted nor formatted
# ignore test data and testfiles: they should never be linted nor formatted
exclude = [
# main style
"**/tests/data/**/*",
Expand Down
10 changes: 9 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
#!/usr/bin/env python

import setuptools
from Cython.Build import cythonize


extensions = [
setuptools.Extension("licensedcode.seq", ["src/licensedcode/seq.pyx"], language="c++"),
]

if __name__ == "__main__":
setuptools.setup()
setuptools.setup(
ext_modules=cythonize(extensions)
)
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ owner: nexB

license_expression: python
licenses:
- file: seq.py.LICENSE
- file: _seq.py.LICENSE
key: python
name: Python Software Foundation License v2

Expand Down
File renamed without changes.
Loading
Loading