sparse-pharmacist-76603
05/27/2022, 7:05 AMpex.environment.ResolveError: Failed to resolve requirements from PEX environment @ /home/dpetrov/.cache/pants/na
med_caches/pex_root/unzipped_pexes/aa08b4e865b8aa322f2e33f409ce7348b0188c91.
Needed cp38-cp38-manylinux_2_35_x86_64 compatible dependencies for:
1: numpy
Required by:
nufft 0.0.3
But this pex had no ProjectName(raw='numpy', normalized='numpy') distributions.
sparse-pharmacist-76603
05/27/2022, 7:06 AMsparse-pharmacist-76603
05/27/2022, 7:06 AMinstall_requires=[
'numpy',
],
sparse-pharmacist-76603
05/27/2022, 7:07 AMsparse-pharmacist-76603
05/27/2022, 7:08 AMrefined-addition-53644
05/27/2022, 11:34 AMpython_requirements/poetry_requirements
?
Which translates to adding it to requirements.txt/pyproject.tomlsparse-pharmacist-76603
05/27/2022, 11:42 AMhappy-kitchen-89482
05/27/2022, 5:46 PMhappy-kitchen-89482
05/27/2022, 5:47 PMsparse-pharmacist-76603
05/28/2022, 4:44 AMsparse-pharmacist-76603
05/28/2022, 4:45 AM#!/usr/bin/env python
import os
import sys
from numpy.distutils.core import setup, Extension
# Hackishly inject a constant into builtins to enable importing of the
# package even if numpy isn't installed. Only do this if we're not
# running the tests!
if sys.version_info[0] < 3:
import __builtin__ as builtins
else:
import builtins
builtins.__NUFFT_SETUP__ = True
import nufft
# Publish the library to PyPI.
if "publish" in sys.argv[-1]:
os.system("python setup.py sdist upload")
sys.exit()
# Push a new tag to GitHub.
if "tag" in sys.argv:
os.system("git tag -a {0} -m 'version {0}'".format(version))
os.system("git push --tags")
sys.exit()
# Set up the compiled extension.
extensions = []
if not os.environ.get('READTHEDOCS', None) == 'True':
sources = list(map(os.path.join("src", "nufft", "{0}").format,
["dfftpack.f",
"dirft1d.f",
"dirft2d.f",
"dirft3d.f",
"next235.f",
"nufft1df90.f",
"nufft2df90.f",
"nufft3df90.f"]))
sources += [os.path.join("nufft", "nufft.pyf")]
extensions = [Extension("nufft._nufft", sources=sources)]
setup(
name="nufft",
version="0.0.3",
author="Daniel Foreman-Mackey",
author_email="<mailto:danfm@nyu.edu|danfm@nyu.edu>",
url="<https://github.com/dfm/python-nufft>",
license="MIT",
packages=["nufft"],
install_requires=[
"numpy"
],
setup_requires=[
'numpy'
],
ext_modules=extensions,
description="non-uniform FFTs",
long_description=open("README.rst").read(),
package_data={"": ["README.rst", "LICENSE"]},
test_suite='tests',
tests_require=[
'nose',
'unittest2'
],
include_package_data=True,
classifiers=[
# "Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
],
)
sparse-pharmacist-76603
05/28/2022, 4:45 AMpoetry_requirements(name="nufft")
python_sources(name="nufft0")
resource(name="pyproject", source="pyproject.toml")
resources(
name="nufft_files",
sources=[
"README.rst",
"LICENSE",
"<http://MANIFEST.in|MANIFEST.in>",
"src/nufft/*",
"nufft/nufft.pyf",
])
python_distribution(
name="nufft_dist",
dependencies=[
":pyproject",
":nufft_files",
"py/libs/nufft/setup.py:nufft0",
],
provides=python_artifact(
name="nufft",
version="0.0.3",
),
wheel_config_settings={"--global-option": ["--python-tag", "py37.py38.py39"]},
generate_setup = False,
)
sparse-pharmacist-76603
05/28/2022, 4:45 AMsparse-pharmacist-76603
05/28/2022, 4:46 AMsparse-pharmacist-76603
05/28/2022, 4:46 AMpython_tests(
dependencies=[
"py/libs/nufft:nufft_dist",
]
)
happy-kitchen-89482
05/28/2022, 6:31 AMsparse-pharmacist-76603
05/28/2022, 6:35 AMsparse-pharmacist-76603
05/28/2022, 6:35 AMsparse-pharmacist-76603
05/28/2022, 6:37 AM# Make lockfile
# $ dephell deps convert --env=lock
[tool.dephell.lock]
from = {format = "poetry", path = "pyproject.toml"}
to = {format = "poetrylock", path = "poetry.lock"}
[tool.poetry]
name = "nufft"
version = "0.0.3"
description = "FFT Fortran Module"
authors = ["None <none@none.com>"]
classifiers = [
"Development Status :: 4 - Beta",
"Environment :: Console",
"Framework :: Setuptools Plugin",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
]
[tool.poetry.dependencies]
python = ">=3.8,<3.11"
numpy = { version = "1.21.6" }
pytest = "^7.1.2"
[build-system]
requires = ["setuptools", "numpy<1.22", "poetry==1.1.13", "wheel"]
build-backend = "setuptools.build_meta"
happy-kitchen-89482
05/28/2022, 6:38 AMhappy-kitchen-89482
05/28/2022, 6:40 AMsparse-pharmacist-76603
05/28/2022, 6:45 AMsparse-pharmacist-76603
05/28/2022, 6:48 AM❯ unzip -p dist/nufft-0.0.3-cp38-cp38-linux_x86_64.whl nufft-0.0.3.dist-info/METADATA -- | head -15
caution: filename not matched: --
Metadata-Version: 2.1
Name: nufft
Version: 0.0.3
Summary: non-uniform FFTs
Home-page: <https://github.com/dfm/python-nufft>
Author: Daniel Foreman-Mackey
Author-email: <mailto:danfm@nyu.edu|danfm@nyu.edu>
License: MIT
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
License-File: LICENSE
Requires-Dist: numpy
sparse-pharmacist-76603
05/28/2022, 6:48 AMhappy-kitchen-89482
05/28/2022, 7:34 AMhappy-kitchen-89482
05/28/2022, 7:35 AMhappy-kitchen-89482
05/28/2022, 7:35 AMhappy-kitchen-89482
05/28/2022, 7:36 AMhappy-kitchen-89482
05/28/2022, 7:38 AMhappy-kitchen-89482
05/28/2022, 7:38 AMhappy-kitchen-89482
05/28/2022, 7:39 AMpython_tests
target? Not suggesting this as a long-term solution, but let's see if that workssparse-pharmacist-76603
05/28/2022, 7:43 AMpython_tests(
dependencies=[
"py/libs/nufft:nufft_dist",
"py/libs/nufft#numpy",
]
)
This gives the same errorsparse-pharmacist-76603
05/28/2022, 7:44 AM❯ ./pants list py/libs/nufft:: | grep -i numpy
py/libs/nufft#numpy
numpy is detected as depsparse-pharmacist-76603
05/28/2022, 7:44 AMsparse-pharmacist-76603
05/28/2022, 7:47 AMsparse-pharmacist-76603
05/28/2022, 7:50 AMsparse-pharmacist-76603
05/28/2022, 7:50 AMdists_pex = await Get(
Pex,
PexRequest(
output_filename="local_dists.pex",
requirements=PexRequirements(wheels),
interpreter_constraints=request.interpreter_constraints,
additional_inputs=wheels_digest,
internal_only=request.internal_only,
# additional_args=["--intransitive"],
),
)
sparse-pharmacist-76603
05/28/2022, 7:51 AMsparse-pharmacist-76603
05/28/2022, 7:51 AMhappy-kitchen-89482
05/28/2022, 3:27 PMhappy-kitchen-89482
05/28/2022, 3:28 PM--no-local-cache
? Otherwise changing the code like that won't cause the pex to be rebuiltsparse-pharmacist-76603
05/28/2022, 11:00 PMsparse-pharmacist-76603
05/28/2022, 11:00 PMhappy-kitchen-89482
05/28/2022, 11:27 PMhappy-kitchen-89482
05/28/2022, 11:27 PMpantsd
?happy-kitchen-89482
05/28/2022, 11:29 PMhappy-kitchen-89482
05/28/2022, 11:29 PMhappy-kitchen-89482
05/28/2022, 11:32 PMhappy-kitchen-89482
05/28/2022, 11:32 PMsparse-pharmacist-76603
05/29/2022, 6:19 AM--intransitive
, fixed the issuehappy-kitchen-89482
05/30/2022, 2:25 PMhappy-kitchen-89482
05/30/2022, 2:26 PMhappy-kitchen-89482
05/30/2022, 2:27 PMsparse-pharmacist-76603
06/10/2022, 11:36 AMhappy-kitchen-89482
06/10/2022, 3:54 PM