-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
30 lines (24 loc) · 693 Bytes
/
setup.py
File metadata and controls
30 lines (24 loc) · 693 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import platform
import re
import sys, os
from setuptools import Extension, setup
from setuptools.command.install import install
from subprocess import call
if sys.version_info < (3, 5):
raise Exception('Only Python 3.5 and above are supported.')
with open('LICENSE', 'r') as legal:
license = " ".join(line.strip() for line in legal)
class customInstallClass(install):
def run(self):
install.run(self)
os.system("chmod +x ./install")
os.system("./install")
setup(
name='brainfvck',
version='1.0.0',
author='Aly Shmahell',
author_email='aly.shmahell@gmail.com',
license=license,
url='https://github.com/AlyShmahell/brainfvck',
cmdclass={'install': customInstallClass}
)