2020-11-28 20:05:27 +01:00
|
|
|
from setuptools import Extension, setup
|
2019-12-08 22:43:49 +01:00
|
|
|
from Cython.Build import cythonize
|
|
|
|
|
|
|
|
setup(
|
|
|
|
name='bemani',
|
|
|
|
version='1.0',
|
|
|
|
description='Code and utilities for talking to BEMANI games',
|
|
|
|
author='DragonMinded',
|
|
|
|
license='Public Domain',
|
|
|
|
packages=[
|
|
|
|
# Core packages
|
|
|
|
'bemani',
|
|
|
|
'bemani.common',
|
|
|
|
'bemani.data',
|
|
|
|
'bemani.data.api',
|
|
|
|
'bemani.data.mysql',
|
|
|
|
'bemani.protocol',
|
|
|
|
|
|
|
|
# Wrapper scripts and WSGI imports
|
|
|
|
'bemani.utils',
|
|
|
|
|
|
|
|
# Frontend packages
|
|
|
|
'bemani.frontend',
|
|
|
|
'bemani.frontend.account',
|
|
|
|
'bemani.frontend.admin',
|
|
|
|
'bemani.frontend.arcade',
|
|
|
|
'bemani.frontend.home',
|
|
|
|
'bemani.frontend.static',
|
|
|
|
'bemani.frontend.templates',
|
|
|
|
|
|
|
|
# Game frontends
|
|
|
|
'bemani.frontend.iidx',
|
|
|
|
'bemani.frontend.popn',
|
|
|
|
'bemani.frontend.jubeat',
|
|
|
|
'bemani.frontend.bishi',
|
|
|
|
'bemani.frontend.ddr',
|
|
|
|
'bemani.frontend.sdvx',
|
|
|
|
'bemani.frontend.reflec',
|
|
|
|
'bemani.frontend.museca',
|
|
|
|
|
|
|
|
# Backend packages
|
|
|
|
'bemani.backend',
|
|
|
|
'bemani.backend.core',
|
|
|
|
'bemani.backend.ess',
|
|
|
|
'bemani.backend.iidx',
|
|
|
|
'bemani.backend.jubeat',
|
|
|
|
'bemani.backend.popn',
|
|
|
|
'bemani.backend.bishi',
|
|
|
|
'bemani.backend.ddr',
|
|
|
|
'bemani.backend.sdvx',
|
|
|
|
'bemani.backend.reflec',
|
|
|
|
'bemani.backend.museca',
|
|
|
|
|
|
|
|
# API packages
|
|
|
|
'bemani.api',
|
|
|
|
'bemani.api.objects',
|
|
|
|
|
|
|
|
# Testing game client packages
|
|
|
|
'bemani.client',
|
|
|
|
'bemani.client.iidx',
|
|
|
|
'bemani.client.jubeat',
|
|
|
|
'bemani.client.popn',
|
|
|
|
'bemani.client.bishi',
|
|
|
|
'bemani.client.ddr',
|
|
|
|
'bemani.client.sdvx',
|
|
|
|
'bemani.client.reflec',
|
|
|
|
'bemani.client.museca',
|
|
|
|
],
|
|
|
|
install_requires=[
|
|
|
|
req for req in open('requirements.txt').read().split('\n') if len(req) > 0
|
|
|
|
],
|
2020-11-28 20:05:27 +01:00
|
|
|
# None of these are required for operating any of the utilities found in this repo.
|
|
|
|
# They are all present for speed. If you cannot compile arbitrary code or cython,
|
|
|
|
# remove the ext_modules line and run setuptools again. Everything should work, but
|
|
|
|
# it will run slower.
|
2019-12-08 22:43:49 +01:00
|
|
|
ext_modules=cythonize(
|
|
|
|
[
|
2020-11-28 20:05:27 +01:00
|
|
|
Extension(
|
|
|
|
"bemani.protocol.binary",
|
|
|
|
[
|
|
|
|
"bemani/protocol/binary.py",
|
|
|
|
]
|
|
|
|
),
|
|
|
|
Extension(
|
|
|
|
"bemani.protocol.lz77",
|
|
|
|
[
|
|
|
|
"bemani/protocol/lz77.py",
|
|
|
|
]
|
|
|
|
),
|
|
|
|
Extension(
|
2021-05-30 00:11:15 +02:00
|
|
|
"bemani.protocol.lz77cpp",
|
2020-11-28 20:05:27 +01:00
|
|
|
[
|
2021-05-30 00:11:15 +02:00
|
|
|
"bemani/protocol/lz77cpp.cxx",
|
2021-05-19 22:16:51 +02:00
|
|
|
],
|
|
|
|
language="c++",
|
|
|
|
extra_compile_args=["-std=c++14"],
|
|
|
|
extra_link_args=["-std=c++14"],
|
2020-11-28 20:05:27 +01:00
|
|
|
),
|
|
|
|
Extension(
|
|
|
|
"bemani.protocol.node",
|
|
|
|
[
|
|
|
|
"bemani/protocol/node.py",
|
|
|
|
]
|
|
|
|
),
|
|
|
|
Extension(
|
|
|
|
"bemani.protocol.protocol",
|
|
|
|
[
|
|
|
|
"bemani/protocol/protocol.py",
|
|
|
|
]
|
|
|
|
),
|
|
|
|
Extension(
|
|
|
|
"bemani.protocol.stream",
|
|
|
|
[
|
|
|
|
"bemani/protocol/stream.py",
|
|
|
|
]
|
|
|
|
),
|
|
|
|
Extension(
|
|
|
|
"bemani.protocol.xml",
|
|
|
|
[
|
|
|
|
"bemani/protocol/xml.py",
|
|
|
|
]
|
|
|
|
),
|
2021-05-16 02:19:50 +02:00
|
|
|
Extension(
|
2021-05-30 00:11:15 +02:00
|
|
|
"bemani.format.afp.blend.blend",
|
2021-05-16 02:19:50 +02:00
|
|
|
[
|
2021-05-30 00:11:15 +02:00
|
|
|
"bemani/format/afp/blend/blend.py",
|
2021-05-16 02:19:50 +02:00
|
|
|
]
|
|
|
|
),
|
2021-05-19 18:25:13 +02:00
|
|
|
Extension(
|
2021-05-30 00:11:15 +02:00
|
|
|
"bemani.format.afp.blend.blendcpp",
|
2021-05-19 18:25:13 +02:00
|
|
|
[
|
2021-05-30 00:11:15 +02:00
|
|
|
"bemani/format/afp/blend/blendcpp.pyx",
|
|
|
|
"bemani/format/afp/blend/blendcppimpl.cxx",
|
2021-05-19 22:16:51 +02:00
|
|
|
],
|
|
|
|
language="c++",
|
|
|
|
extra_compile_args=["-std=c++14"],
|
|
|
|
extra_link_args=["-std=c++14"],
|
2021-05-19 18:25:13 +02:00
|
|
|
),
|
2021-05-16 02:19:50 +02:00
|
|
|
Extension(
|
|
|
|
"bemani.format.afp.types.generic",
|
|
|
|
[
|
|
|
|
"bemani/format/afp/types/generic.py",
|
|
|
|
]
|
|
|
|
),
|
2021-05-21 18:58:20 +02:00
|
|
|
Extension(
|
|
|
|
"bemani.format.dxt",
|
|
|
|
[
|
|
|
|
"bemani/format/dxt.py",
|
|
|
|
]
|
|
|
|
),
|
2019-12-08 22:43:49 +01:00
|
|
|
],
|
|
|
|
language_level=3,
|
|
|
|
),
|
|
|
|
include_package_data=True,
|
|
|
|
zip_safe=False,
|
|
|
|
)
|