cubicweb/__pkginfo__.py
branch3.26
changeset 12271 1f792d76fca3
parent 12270 0e89483f50a1
child 12272 36032de96867
equal deleted inserted replaced
12270:0e89483f50a1 12271:1f792d76fca3
    17 # You should have received a copy of the GNU Lesser General Public License along
    17 # You should have received a copy of the GNU Lesser General Public License along
    18 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    18 # with CubicWeb.  If not, see <http://www.gnu.org/licenses/>.
    19 """cubicweb global packaging information for the cubicweb knowledge management
    19 """cubicweb global packaging information for the cubicweb knowledge management
    20 software
    20 software
    21 """
    21 """
    22 import sys
       
    23 from os import listdir
    22 from os import listdir
    24 from os.path import join
    23 from os.path import join
    25 
    24 
    26 
    25 
    27 modname = distname = "cubicweb"
    26 modname = distname = "cubicweb"
    42     'Programming Language :: JavaScript',
    41     'Programming Language :: JavaScript',
    43 ]
    42 ]
    44 
    43 
    45 _server_migration_dir = join(modname, 'misc', 'migration')
    44 _server_migration_dir = join(modname, 'misc', 'migration')
    46 
    45 
    47 _pyversion = '.'.join(str(num) for num in sys.version_info[0:2])
       
    48 if '--home' in sys.argv:
       
    49     # --home install
       
    50     pydir = 'python' + _pyversion
       
    51 else:
       
    52     pydir = join('python' + _pyversion, 'site-packages')
       
    53 
       
    54 # data files that shall be copied into the main package directory
    46 # data files that shall be copied into the main package directory
    55 package_data = {
    47 package_data = {
    56     'cubicweb.web.views': ['*.pt'],
    48     'cubicweb.web.views': ['*.pt'],
    57     'cubicweb.pyramid': ['development.ini.tmpl'],
    49     'cubicweb.pyramid': ['development.ini.tmpl'],
    58 }
    50 }