mirror of
https://github.com/Z3Prover/z3
synced 2025-08-23 11:37:54 +00:00
Revert "Fix source installation to create dist-info directory for package dis…" (#7704)
This reverts commit ad0afbb792
.
This commit is contained in:
parent
b1259fb6ce
commit
661ccb3702
4 changed files with 13 additions and 329 deletions
|
@ -9,11 +9,7 @@ import glob
|
|||
from setuptools import setup
|
||||
from setuptools.command.build import build as _build
|
||||
from setuptools.command.sdist import sdist as _sdist
|
||||
try:
|
||||
from wheel.bdist_wheel import bdist_wheel as _bdist_wheel
|
||||
except ImportError:
|
||||
# wheel package not available, provide a dummy class
|
||||
from setuptools.command.build import build as _bdist_wheel
|
||||
from setuptools.command.bdist_wheel import bdist_wheel as _bdist_wheel
|
||||
from setuptools.command.develop import develop as _develop
|
||||
|
||||
class LibError(Exception):
|
||||
|
@ -116,7 +112,6 @@ def _clean_native_build():
|
|||
rmtree(BUILD_DIR)
|
||||
|
||||
def _z3_version():
|
||||
# Get version from project metadata
|
||||
post = os.getenv('Z3_VERSION_SUFFIX', '')
|
||||
if RELEASE_DIR is None:
|
||||
fn = os.path.join(SRC_DIR, 'scripts', 'mk_project.py')
|
||||
|
@ -289,7 +284,7 @@ class sdist(_sdist):
|
|||
# The Azure Dev Ops pipelines use internal OS version tagging that don't correspond
|
||||
# to releases.
|
||||
|
||||
internal_build_re = re.compile(r"(.+)\_7")
|
||||
internal_build_re = re.compile("(.+)\_7")
|
||||
|
||||
class bdist_wheel(_bdist_wheel):
|
||||
|
||||
|
@ -328,10 +323,19 @@ class bdist_wheel(_bdist_wheel):
|
|||
|
||||
|
||||
setup(
|
||||
# Most configuration is now in pyproject.toml
|
||||
# Keep only setup.py-specific configuration
|
||||
name='z3-solver',
|
||||
version=_z3_version(),
|
||||
description='an efficient SMT solver library',
|
||||
long_description='Z3 is a theorem prover from Microsoft Research with support for bitvectors, booleans, arrays, floating point numbers, strings, and other data types.\n\nFor documentation, please read http://z3prover.github.io/api/html/z3.html',
|
||||
author="The Z3 Theorem Prover Project",
|
||||
maintainer="Audrey Dutcher and Nikolaj Bjorner",
|
||||
maintainer_email="audrey@rhelmot.io",
|
||||
url='https://github.com/Z3Prover/z3',
|
||||
license='MIT License',
|
||||
keywords=['z3', 'smt', 'sat', 'prover', 'theorem'],
|
||||
packages=['z3'],
|
||||
setup_requires = SETUP_REQUIRES,
|
||||
install_requires = ["importlib-resources; python_version < '3.9'"],
|
||||
include_package_data=True,
|
||||
package_data={
|
||||
'z3': [os.path.join('lib', '*'), os.path.join('include', '*.h'), os.path.join('include', 'c++', '*.h')]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue