Skip to content

Commit 8b425ee

Browse files
committed
Fix the scancode ver for macos
Signed-off-by: jiyeong.seok <[email protected]>
1 parent fdbab46 commit 8b425ee

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
pyparsing
2-
scancode-toolkit>=32.2.0
32
scanoss
43
XlsxWriter
54
fosslight_util>=2.1.0

setup.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# -*- coding: utf-8 -*-
33
# Copyright (c) 2021 LG Electronics
44
# SPDX-License-Identifier: Apache-2.0
5+
import platform
56
from codecs import open
67
from setuptools import setup, find_packages
78

@@ -11,6 +12,11 @@
1112
with open('requirements.txt', 'r', 'utf-8') as f:
1213
required = f.read().splitlines()
1314

15+
if platform.system() == 'Darwin':
16+
required.append('scancode-toolkit==32.0.*')
17+
else:
18+
required.append('scancode-toolkit==32.2.*')
19+
1420
if __name__ == "__main__":
1521
setup(
1622
name='fosslight_source',

0 commit comments

Comments
 (0)