<commit_before>#!/usr/bin/env python3
from distutils.core import setup
import subprocess
import glob
import os

ver = os.environ.get("PKGVER") or subprocess.run(['git', 'describe', '--tags'],
      stdout=subprocess.PIPE).stdout.decode().strip()

setup(
  name = 'knightos',
  packages = ['knightos', 'knightos.commands'],
  version = ver,
  description = 'KnightOS SDK',
  author = '<NAME>',
  author_email = '<EMAIL>',
  url = 'https://github.com/KnightOS/sdk',
  install_requires = ['requests', 'yaml', 'pystache', 'docopt'],
  license = 'AGPL-3.0',
  scripts=['bin/knightos'],
  package_data={
      'knightos': [
          'templates/*',
          'templates/c/*',
          'templates/assembly/*',
      ]
  },
)<commit_msg>Add setuptools to setup.py, OS X compatibility<commit_after>#!/usr/bin/env python3
try:
  from setuptools import setup
except ImportError:
  from distutils.core import setup
from sys import platform
import subprocess
import glob
import os

ver = os.environ.get("PKGVER") or subprocess.run(['git', 'describe', '--tags'],
      stdout=subprocess.PIPE).stdout.decode().strip()

setup(
  name = 'knightos',
  packages = ['knightos', 'knightos.commands'],
  version = ver,
  description = 'KnightOS SDK',
  author = '<NAME>',
  author_email = '<EMAIL>',
  url = 'https://github.com/KnightOS/sdk',
  install_requires = ['requests', 'pyyaml', 'pystache', 'docopt'],
  license = 'AGPL-3.0',
  scripts=['bin/knightos'],
  package_data={
      'knightos': [
          'templates/*',
          'templates/c/*',
          'templates/assembly/*',
      ]
  },
)
{'fraction_non_alphanumeric': 0.17870722433460076, 'fraction_numerical': 0.0038022813688212928, 'mean_word_length': 3.524355300859599, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1803058', 'n_tokens_mistral': 539, 'n_tokens_neox': 539, 'n_words': 115}