Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add setup.py #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Add setup.py #1

wants to merge 1 commit into from

Conversation

TiagoCavalcante
Copy link
Contributor

No description provided.

setup.py Outdated
name="Mathics-doctest",
version="0.1.0",
install_requires=[
"Mathics3 >= 4.0.0"
Copy link
Member

@rocky rocky Sep 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't want to install Mathics3 at all. This would cause a circular dependency since mathics-core needs this.

In CI for full testing it can import mathics-core, but is that is not a setup dependency.

And locally and in CI for unit testing, data from core as it is can be pulled in here. Some sort skeletal builtin modules can be created in a test directory.

But for to get started we can just try this without any tests.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also probably need a packages attribute in the setup to declare the module.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In CI for full testing it can import mathics-core, but is that is not a setup dependency.

Is it going to be done through just download or submodule? (I think the 1st is better in this case).

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you suspect, download is simpler.

import sys

python_version = sys.version_info[:2]
if python_version < (3, 6):
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We support 3.6 in mathics-core right?

What in 3.7 do we need?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ooops. this refers to the error message below.

Probably it needs to be fixed in mathics-core as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants