Giter Site home page Giter Site logo

dram's People

Contributors

packetscrub avatar pwicks86 avatar storborg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

dram's Issues

Add dram-cmake and dram-configure commands

Add new commands which alias/replace e.g. cmake $DRAM_CMAKE_FLAGS. That way, the original commands (cmake and ./configure) can be caught and the shell can warn and prompt the user to continue. This should reduce the risk of accidentally "escaping" the dram environment.

Add specific command help

It'd be cool if we had help for the specific commands, i.e. dram help create would show help for the create command.

The plain-with-python setup should add a prefix symlink to virtualenv

Specifically it should make e.g. /dram/blah/lib/python2.7/site-packages point to /dram/blah/pyenv/lib/python2.7/site-packages. This is because a bunch of packages will install their python modules into a path that is directly based on the PREFIX, rather than based on the actual real python environment.

Is there any way to 'unuse' a dram?

I'm afraid it's causing problems with resolving paths or something. I'd at least like to disable it and see if it fixes anything. Should I just create a separate empty dram and switch to it?

Add a shell installer

Add an installation tool that sets up the dram root dir and sources the dram.sh script in the shell. This could be implemented as either one of:

  • A setuptools install cmd class which performs the appropriate operations.
  • An additional command-line tool, e.g. dram-install, which performs the appropriate operations. This could also interactively prompt the user for settings and configure them appropriately.

Improve dram installer

  • Use ~/.profile instead of ~/.bashrc on OS X
  • Eliminate all dependencies to improve robustness
  • Elevate privileges when creating dram root if necessary
  • Default to using a dram root inside of home dir

Add promote/demote commands

dram promote foo - If foo is an executable that is inside the currently enabled dram, set a symlink from /usr/local/bin/foo to foo. Note that this will only really work for statically linked executables. Check to make sure that foo isn't already present in a different global path. If so, refuse to do anything, unless -f is passed.

dram demote foo - If foo is a symlink inside /usr/local/bin/ that points to an executable inside a dram, remove it. If not, refuse to do anything.

dram_confirm_unsafe grabs the wrong part of the command to complain about

e.g.

(pyenv) skysafe@fessenden:/dram/uhd-master/source/uhd/host/build$ cmake $DRAM_CMAKE_FLAGS -DLIBUSB_INCLUDE_DIRS=$DRAM_ROOT/$DRAM/include/libusb-1.0 -Wno-dev ..
Dram is active, are you sure you want to execute -DCMAKE_INSTALL_PREFIX=/dram/uhd-master? [y/N] 

Should show are you sure you want to execute cmake?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.