$ cat > setup.py #!/usr/bin/python from setuptools import setup _author_ = ‘Your Full Name’ setup( name=’tvb-neurodebian’, version=’0.0. Now we have to create a python setup script for local python setup.py install. ![]() & cat > tvb-neurodebian.py #!/usr/bin/env python import tvb tvb.main() ![]() No go back to our main directory and creat the tvb file. $ cat > _init_.py from _future_ import print_function import argparse print(‘The Virtual Brain imported!’) def parse_args(): parser = argparse.ArgumentParser() parser.add_argument(‘text’, help=’Text to TVB-Neuropackage’) return parser.parse_args() def main(): print(‘This is the main function :)’) args = parse_args() print(args.text) Now create a _init_.py for allowing the directory to be imported to python, and type our simple script. This package is a dependency package, which depends on Debian's default Python version (currently v2.7). ![]() Installing and managing packages in Python is complicated. Python, the high-level, interactive object oriented language, includes an extensive class library with lots of goodies for network programming, system administration, sounds and graphics. Debian 11 ships with Python 3 pre-installed. $ mkdir project_name & cd project_nameĬreate another directory inside the project name and move to the newly directory. NumPy can be installed with conda, with pip, with a package manager on macOS and Linux. We will begging by writing a simple python script with we will be packaging it letter.Ĭreate a project directory and go to the created directory.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |