mirror of
https://github.com/McSinyx/palace
synced 2023-12-14 09:02:59 +01:00
Nitpick packaging
This follows up GH-112.
This commit is contained in:
parent
3a9e23917f
commit
587179fecf
2 changed files with 8 additions and 10 deletions
|
@ -20,7 +20,7 @@ classifiers =
|
||||||
Topic :: Software Development :: Libraries
|
Topic :: Software Development :: Libraries
|
||||||
Typing :: Typed
|
Typing :: Typed
|
||||||
license = LGPLv3+
|
license = LGPLv3+
|
||||||
license_file = LICENSE
|
license_files = LICENSE
|
||||||
description = Pythonic Audio Library and Codecs Environment
|
description = Pythonic Audio Library and Codecs Environment
|
||||||
long_description = file: README.md
|
long_description = file: README.md
|
||||||
long_description_content_type = text/markdown
|
long_description_content_type = text/markdown
|
||||||
|
|
14
setup.py
14
setup.py
|
@ -18,12 +18,11 @@
|
||||||
# You should have received a copy of the GNU Lesser General Public License
|
# You should have received a copy of the GNU Lesser General Public License
|
||||||
# along with palace. If not, see <https://www.gnu.org/licenses/>.
|
# along with palace. If not, see <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
import sys
|
|
||||||
import re
|
import re
|
||||||
from distutils import log
|
from distutils import log
|
||||||
from distutils.command.clean import clean
|
from distutils.command.clean import clean
|
||||||
from distutils.dir_util import mkpath
|
from distutils.dir_util import mkpath
|
||||||
from distutils.errors import DistutilsFileError
|
from distutils.errors import DistutilsExecError, DistutilsFileError
|
||||||
from distutils.file_util import copy_file
|
from distutils.file_util import copy_file
|
||||||
from operator import methodcaller
|
from operator import methodcaller
|
||||||
from os import environ, unlink
|
from os import environ, unlink
|
||||||
|
@ -57,15 +56,14 @@ class BuildAlure2Ext(build_ext):
|
||||||
"""
|
"""
|
||||||
super().finalize_options()
|
super().finalize_options()
|
||||||
mkpath(self.build_temp)
|
mkpath(self.build_temp)
|
||||||
copy_file(join(dirname(__file__), 'CMakeLists.txt'),
|
copy_file(join(dirname(__file__), 'CMakeLists.txt'), self.build_temp)
|
||||||
self.build_temp)
|
|
||||||
try:
|
try:
|
||||||
cmake = run(['cmake', '.'],
|
cmake = run(
|
||||||
check=True, stdout=DEVNULL, stderr=PIPE,
|
['cmake', '.'], check=True, stdout=DEVNULL, stderr=PIPE,
|
||||||
cwd=self.build_temp, universal_newlines=True)
|
cwd=self.build_temp, universal_newlines=True)
|
||||||
except CalledProcessError as e:
|
except CalledProcessError as e:
|
||||||
print(e.stderr, file=sys.stderr)
|
log.error(e.stderr.strip())
|
||||||
raise e from None
|
raise DistutilsExecError(str(e))
|
||||||
|
|
||||||
for key, value in map(methodcaller('groups'),
|
for key, value in map(methodcaller('groups'),
|
||||||
re.finditer(r'^alure2_(\w*)=(.*)$',
|
re.finditer(r'^alure2_(\w*)=(.*)$',
|
||||||
|
|
Loading…
Reference in a new issue