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

don't create .pyc files in ~/.sasview (Trac #1207) #1237

Closed
pkienzle opened this issue Mar 30, 2019 · 5 comments
Closed

don't create .pyc files in ~/.sasview (Trac #1207) #1237

pkienzle opened this issue Mar 30, 2019 · 5 comments
Labels
Defect Bug or undesirable behaviour McSAS McSAS Integration Project Minor Small job
Milestone

Comments

@pkienzle
Copy link
Contributor

pkienzle commented Mar 30, 2019

All versions.

Need to load custom config file without create a corresponding pyc file. The pyc files are dependent on python version, and so may cause problems that custom config is forgotten between releases. Also, the pycache directories in the ~/.sasview are messy.

Same applies to plugin_models directory, and the weights directory if user defined distributions PR is ever merged.

Migrated from http://trac.sasview.org/ticket/1207

{
    "status": "new",
    "changetime": "2018-11-02T16:21:23",
    "_ts": "2018-11-02 16:21:23.484956+00:00",
    "description": "All versions.\n\nNeed to load custom config file without create a corresponding pyc file.  The pyc files are dependent on python version, and so may cause problems that custom config is forgotten between releases.  Also, the __pycache__ directories in the ~/.sasview are messy.\n\nSame applies to plugin_models directory, and the weights directory if user defined distributions PR is ever merged.",
    "reporter": "pkienzle",
    "cc": "",
    "resolution": "",
    "workpackage": "McSAS Integration Project",
    "time": "2018-11-02T16:21:23",
    "component": "SasView",
    "summary": "don't create .pyc files in ~/.sasview",
    "priority": "minor",
    "keywords": "",
    "milestone": "SasView 4.3.0",
    "owner": "",
    "type": "defect"
}
@pkienzle pkienzle added this to the SasView 4.3.0 milestone Mar 30, 2019
@pkienzle pkienzle added Defect Bug or undesirable behaviour Incomplete Migration McSAS McSAS Integration Project Minor Small job labels Mar 30, 2019
@butlerpd butlerpd modified the milestones: SasView 4.3.0, SasView 5.1.0 Apr 26, 2020
@butlerpd
Copy link
Member

Probably not worth the resources for 4.x but should be relevant to 5.x so moving to 5.1

@butlerpd
Copy link
Member

@rozyczko - I recently was surprised to notice that there were no pyc in the 5.0 plugin directory. DOes that mean this ticket can be closed rather than wait for 5.1?

@rozyczko
Copy link
Member

There are still both .pyc files and __pycache__ in .sasview. We can easily avoid generating those so let's address this issue in 5.0.x or 5.1

@butlerpd
Copy link
Member

ah ok ... so still valid then. Will leave in 5.1 and not delete

@lucas-wilkins
Copy link
Contributor

ain't no custom config no more, so ain't no .pyc file neither

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Defect Bug or undesirable behaviour McSAS McSAS Integration Project Minor Small job
Projects
None yet
Development

No branches or pull requests

5 participants