Changeset 9797bd1 in rtems-source-builder


Ignore:
Timestamp:
Feb 14, 2014, 2:26:11 AM (6 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
4.10, 4.11, 4.9, master
Children:
0f064ba
Parents:
d9e3dae
Message:

sb: Clean up using argparse. It is not available on CentOS.

Include the argparse package in the source and use if not available.

Location:
source-builder
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • source-builder/pkg-config

    rd9e3dae r9797bd1  
    3030#
    3131
    32 import argparse
    3332import os
    3433import sys
     
    3635base = os.path.dirname(sys.argv[0])
    3736sys.path.insert(0, base + '/sb')
     37
     38try:
     39    import argparse
     40except:
     41    sys.path.insert(0, base + '/sb/imports')
     42    try:
     43        import argparse
     44    except:
     45        print >> sys.stderr, "Incorrect Source Builder installation"
     46        sys.exit(1)
    3847
    3948try:
  • source-builder/sb/pkgconfig.py

    rd9e3dae r9797bd1  
    3535#
    3636
    37 import argparse
    3837import os
    3938import os.path
Note: See TracChangeset for help on using the changeset viewer.